Skip to content
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

Error when using trash to delete something #95

Closed
GreenSleeper opened this issue Jun 7, 2023 · 4 comments
Closed

Error when using trash to delete something #95

GreenSleeper opened this issue Jun 7, 2023 · 4 comments

Comments

@GreenSleeper
Copy link

I just installed trash using cargo, and when I run trash something, I get this error:

error: Error during a `trash` operation: Unknown { description: "Path: '\"/data01/.Trash-1009\"'. Message: Permission denied (os error 13)" }

What does it mean?
/data01/.Trash-1009 desn't exist

@GreenSleeper
Copy link
Author

And is there a way to configure the "trash folder"?

@elyashivhazan
Copy link

elyashivhazan commented Oct 1, 2023

Hi, ur trying to delete a file in an external drive (not in ur home folder), their for by the freedesktop.org specs it needs to be put in a folder named /root_of_drive/.Trash-$UID and u dont have permission to create that folder.

to fix change ur drive permission to allow u to create folders.

@rfourquet
Copy link

It looks like it should be enough for a /root_of_drive/.Trash directory to exist with appropriate permissions, in which case /root_of_drive/.Trash/$UID can be created and used as the trash directory.

@GreenSleeper
Copy link
Author

Hi, ur trying to delete a file in an external drive (not in ur home folder), their for by the freedesktop.org specs it needs to be put in a folder named /root_of_drive/.Trash-$UID and u dont have permission to create that folder.

to fix change ur drive permission to allow u to create folders.

I only have permissions in one folder in that external drive, that why I asked if the trash folder could be configured.
anyway, thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants