MCPcopy Create free account
hub / github.com/LeetCode-OpenSource/vscode-leetcode / toWslPath

Function toWslPath

src/utils/wslUtils.ts:13–15  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

11}
12
13export async function toWslPath(path: string): Promise<string> {
14 return (await executeCommand("wsl", ["wslpath", "-u", `"${path.replace(/\\/g, "/")}"`])).trim();
15}
16
17export async function toWinPath(path: string): Promise<string> {
18 if (path.startsWith("\\mnt\\")) {

Callers 1

meetRequirementsMethod · 0.90

Calls 1

executeCommandFunction · 0.90

Tested by

no test coverage detected