Open myleftshoe opened 5 years ago
Can confirm,
macOS 10.14.3 bash 5.0.3(1)-release (x86_64-apple-darwin18.2.0) node 10.15.0 npm 6.4.1
You see the file gets removed but the bin still is empty, thank god i deleted only a testfile
Also happens on Fedora 30, node v10.16.3, npm 6.11.3.
I have the same problem with WSL both for bash and ZSH , the file is removed but does not end up in Recycle Bin
Have the same problem with WSL. Using zsh shell through Cmder. trash
a folder but it didn't appear in a Recycle bin.
Also, have no Trash folder in ~/.local/share
.
Don't know where my deleted folder has gone, gladly it was a test-one.
node 13.6.0
npm 6.13.4
Hey all, I used trash-cli
on macOS for a long time with no issues. When running trash ...
the file/dir in question would successfully make it to macOS's trash. However I recently started a dev environment in WSL 2 using Ubuntu and when running trash ...
on a file/dir I can confirm that the content in question does not make it to the Windows Recycle Bin. This could be a disconnect with WSL. I can locate the deleted contents in ~/.local/share/Trash
, where there is both a /files
and /info
directory. The names of the files have been changed to UUIDs, and I'm sure for good reason. It would be cool to have them appear in the Recycle Bin, and I'm not sure how this impacts storage moving forward, but that's the current state of the tool on WSL 2 with Ubuntu.
EDIT: If you check out the Info section in the README of the trash
tool that @sindresorhus has created, you'll see the methodologies used for each OS:
On macOS, macos-trash is used. On Linux, the XDG spec is followed. On Windows, recycle-bin is used.
Still haven't reached the best solution for myself but just trying to understand more at the moment.
EDIT 2: I've come to the conclusion that using WSL 2 on a Windows machine will not give me the "peace of mind" that trash-cli
will trash files to Windows Recycle Bin. It is two separate "environments".
EDIT 3: For those that want some more background, I wrote up a quick post on how you can delete trashed files in WSL using Sindre's tools.
Same thing here, deleted files and folders don't show up in the Bin.
Ubuntu 18.04.1 LTS on Windows 10 x86_64
Maybe something to do with WSL?