wslpath
wslpath copied to clipboard
/tmp/ doesn't convert correctly
I found that the /tmp/ folder is actually in C:\Users\username\AppData\Local\lxss\rootfs\tmp\
. I patched my wslpath with his on line 97
$tempOutput = slashJoin(lxssPath(), "rootfs", "\\");
$output = slashJoin($tempOutput, $path, "\\");
This is only a rough fix it needs some more thought but it did the trick when I needed it.
I needed this conversion for my git diff tool beyond compare 4 (bc3 in git). Cheers, other than what was needed in this patch it was very useful 👍