linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.17k stars 297 forks source link

Cannot move sub directories or files out of trash #3066

Open schorschii opened 1 year ago

schorschii commented 1 year ago
 * Nemo version 5.4.2
 * Is issue with desktop or windowed nemo? Desktop
 * Distribution - Mint 21
 * Graphics hardware *and* driver used - None (VM)
 * 64 bit

Issue It is not possible to move sub directories or files of deleted directories out of the trash bin. A progress bar appears ("Preparing moving file") but never finishes, it can't even be cancelled - the window stays open forever. Bildschirmfoto vom 2024-07-03 11-15-12

Steps to reproduce Create a directory with files in it. Move this directory to trash. Then, open the trash bin and try to move a file inside the deleted folder to the desktop or any other location.

Expected behaviour File or directory should be moved to the target location.

Other information

Jeremy7701 commented 1 year ago

The Trash bin is designed to hold deleted files and allows you restore selected items. It's not designed for copying or moving items. See ~/.local/share/Trash/ for details. You cannot restore a file or directory if the relevant parent directory is missing.

schorschii commented 1 year ago

I don't know if we are talking about the same thing. The parent directory (including the sub directory which should be restored) is also in the trash bin (so, it exists and is NOT missing) as I described in the first post.

If you mean this is not a supported feature, okay, but then it is still a bug since a progress bar appears but never finishes...

But it would still be nice to have this feature as some users will certainly try to do this intuitively via drag & drop.

leigh123linux commented 1 year ago

I don't know if we are talking about the same thing. The parent directory (including the sub directory which should be restored) is also in the trash bin (so, it exists and is NOT missing) as I described in the first post.

If you mean this is not a supported feature, okay, but then it is still a bug since a progress bar appears but never finishes...

But it would still be nice to have this feature as some users will certainly try to do this intuitively via drag & drop.

You will need to file your request to upstream gvfsd as they provide the trash functions.

schorschii commented 5 days ago

Issue created in the gvfsd repo: https://gitlab.gnome.org/GNOME/gvfs/-/issues/747

schorschii commented 4 days ago

Dear Nemo team,

Please consider removing the functionality of moving sub-files and sub-directories of deleted directories out of the trash bin since it is not allowed in the freedesktop trash specification.

Ondrej Holy wrote in the gvfs issue:

Moving subdirectories / subfiles out of the trash dir is not allowed currently. The trash specification (https://specifications.freedesktop.org/trash-spec/trashspec-latest.html) says:

If a directory was trashed in its entirety, it is easiest to undelete it or remove it from the trash only in its entirety as well, not as separate files. The user might not have the permissions to delete some files in it even while they do have the permission to delete the directory!

Nautilus allows just the "Copy" action for subdirectories / subfiles, the "Move" (and "Cut") action is disabled. I suppose that Nemo should be fixed to do the same...

@leigh123linux @mtwebster @clefebvre