You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trash-put is used to trash a folder that contains other folders without write permissions, a subsequent trash-empty command will fail
trash-cli version
0.24.5.26
Are you using the latest version of trash-cli?
Yes
Have you tried if the bug is present in the latest version of trash-cli?
Yes
Operating system:
OS: Arch
To Reproduce
Copy and paste the commands (and their output) to execute in order to reproduce
the behavior:
Expected behavior
Files in the trash should be forcibley overwritten or trash-empty should ask for confirmation before overwritng them
Currently I have to go into the trash directory and run chmod -R +w myfolder before I can empty the trash. This should be automated
Note that this bug was discovered by deleting the "go" directory that contains the dependent modules that are downloaded during the build process of go applications. The contained module folders do not have write permissions by default.
The text was updated successfully, but these errors were encountered:
I'm unable to reproduce the problem using your toy example, although we're using the same version of trash-cli. Could it be an issue with the permissions of the Trash folder? For me, ~/.local/share/Trash and its subfolders have drwx------ permissions, and the owner and group are me.
Describe the bug
When trash-put is used to trash a folder that contains other folders without write permissions, a subsequent trash-empty command will fail
trash-cli version
0.24.5.26
Are you using the latest version of trash-cli?
Yes
Have you tried if the bug is present in the latest version of trash-cli?
Yes
Operating system:
To Reproduce
Copy and paste the commands (and their output) to execute in order to reproduce
the behavior:
$ mkdir -p myfolder/testfolder
$ chmod -w myfolder/testfolder
$ trash-put myfolder
$ trash-empty -f
trash-empty: cannot remove /home/$USER/.local/share/Trash/files/myfolder
Expected behavior
Files in the trash should be forcibley overwritten or trash-empty should ask for confirmation before overwritng them
Currently I have to go into the trash directory and run
chmod -R +w myfolder
before I can empty the trash. This should be automatedNote that this bug was discovered by deleting the "go" directory that contains the dependent modules that are downloaded during the build process of go applications. The contained module folders do not have write permissions by default.
The text was updated successfully, but these errors were encountered: