MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / toWSLPath

Function toWSLPath

scripts/build-linux-appimage.js:57–64  ·  view source on GitHub ↗
(winPath)

Source from the content-addressed store, hash-verified

55
56// Convert Windows path to WSL path
57function toWSLPath(winPath) {
58 // Normalize path separators
59 const normalized = path.resolve(winPath).replace(/\\/g, '/');
60 // Extract drive letter (should be first character)
61 const drive = normalized[0].toLowerCase();
62 // Convert C:/path to /mnt/c/path
63 return `/mnt/${drive}${normalized.substring(2)}`;
64}
65
66// Build using WSL
67function buildWithWSL() {

Callers 2

buildWithWSLFunction · 0.85
buildWithContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected