-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trashing doesn't work across different devices (linux) #57
Comments
Thanks for letting me know. The assumption is that the trash folder is located on the same filesystem and currently there are no precautions for that. A decent way of fixing this would probably be to better determine the location of the trash directory, which should never be outside of the file system of the files to be trashed. I'd be interested to hear how the standard OS 'delete file' functionality handles this with details on where puts the trash directory, and how it's organized. |
This might be of some help: But looking at an actual implementation would possibly be more useful. |
I haven't read the source code but this is how trash-cli seems to solve this one: Deletion / trash-put
Listing / trash-listCrawl all
|
Thanks a lot for the hints, they will certainly help with a fix. |
I am trashing a file in a zfs dataset different from the one my home directory is mounted in and get the following error:
Message: Invalid cross-device link (os error 18)
It seems to be a limitation of using rename.
The text was updated successfully, but these errors were encountered: