(input: string)
| 73 | } |
| 74 | |
| 75 | export function decodeFilePath(input: string) { |
| 76 | try { |
| 77 | return decodeURIComponent(input) |
| 78 | } catch { |
| 79 | return input |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | export function encodeFilePath(filepath: string): string { |
| 84 | // Normalize Windows paths: convert backslashes to forward slashes |