Open getify opened 4 years ago
I use neither Windows nor WSL, so I cannot help much with this I'm afraid. But I'm happy to add a note or add a workaround if anyone can come up with a good solution.
https://github.com/sindresorhus/is-wsl could be used to detect WSL.
For anyone having troubles finding the deleted files when using this via WSL2; in my case the files were moved to /mnt/c/.Trash-1000
where 1000
is the UID of the linux user.
I have windows 10 + WSL (v1). I just installed this tool and tried to use it on a file inside WSL... I was expecting it to move the file to my Recycle Bin. It didn't work, but then I realized it put the file (renamed) inside
~/.local/share/Trash/files/
(according to that linux spec I guess).I now realize this wasn't going to work like I expected since the tool is running in a linux environment (WSL), not actual windows.
I'm not sure if there's any way to get this tool installed out in windows land and still be able to run it from inside WSL to do what I expected, but if that's possible it would be nice to add something about that to the documentation.
Alternately and minimally, it might be a good idea to point in the docs out that installing under WSL in Windows is actually installing in linux, and pointing out where deleted files will go. Could remove some future confusion I had for the last ~20 minutes.