(path: string)
| 15 | } |
| 16 | |
| 17 | export async function toWinPath(path: string): Promise<string> { |
| 18 | if (path.startsWith("\\mnt\\")) { |
| 19 | return (await executeCommand("wsl", ["wslpath", "-w", `"${path.replace(/\\/g, "/").substr(0, 6)}"`])).trim() + path.substr(7); |
| 20 | } |
| 21 | return (await executeCommand("wsl", ["wslpath", "-w", "/"])).trim() + path; |
| 22 | } |
nothing calls this directly
no test coverage detected