(absolutePath: string)
| 320 | // TODO: this does not escape/unescape special characters |
| 321 | /** @deprecated consider absolutePathToFileUrlWithDetection instead */ |
| 322 | export function absolutePathToFileUrl(absolutePath: string): string { |
| 323 | if (platform === 'win32') { |
| 324 | return 'file:///' + platformPathToUrlPath(absolutePath); |
| 325 | } |
| 326 | return 'file://' + platformPathToUrlPath(absolutePath); |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Absolte path former that detects the platform based on the absolutePath |
no test coverage detected