Bug 309264 - Contents of trash folder on removable media is not included in the trash folder after connecting the media again
Summary: Contents of trash folder on removable media is not included in the trash fold...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-30 16:44 UTC by J.A. Moray
Modified: 2020-08-06 16:18 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.A. Moray 2012-10-30 16:44:09 UTC
When you move a file to the trash in a removable media, it creates a trash for that device specifically, and when you remove the device from the PC and then connect it again, the files in the trash of that device doesn't appear in the "General trash", so to delete it permanently you have to access to the hidden trash folder and delete it. Beginners probably can get to have a flash drive full of files in the "invisible" trash this way, and that's a problem.

In Windows, you can only move a file to the trash if it's in the hard disk, and if it's in a removable device you can only delete it permanently. That's what I'd like to have in Dolphin and I think it's necessary.

Reproducible: Always

Steps to Reproduce:
1. Right click on a file in a removable device.
2. You see the option "Move to trash" and click on it.
3. The file moves to removable device's trash, that will be "invisible".


Expected Results:  
1. Right click on a file in a removable device.
2. You see the option "Delete" (instead of "Move to trash") and click on it.
3. The file deletes permanently.
Comment 1 Gregor Mi 2016-03-24 19:42:39 UTC
I tried this with current Plasma and dolphin version:

1. connect an USB hard drive
2. create a file there
3. delete the file
4a. the file is shown in Dolphin's trash view alongside other files from the local hard drive
4b. the Path column shows the origin of the file

Can you confirm this?

Especially for big files I noticed that the behaviour of moving the file which the user wants to delete from USB drive to local trash is time consuming and maybe not expected. On the one hand, it is good to have the file recoverable, on the other hand the user could be asked what to when the file selection exceeds a certain size (maybe starting with 10 MB).
Comment 2 Julian Steinmann 2018-04-02 11:18:58 UTC
We have all necessary information for this wish -> status is now CONFIRMED.
Comment 3 Lukas Sabota 2018-09-29 18:38:39 UTC
This also occurs for MTP devices.  I can't imagine a situation where one would want a trash on a MTP (Zune, Android, etc) filestyle
Comment 4 Patrick Silva 2018-10-18 15:21:03 UTC
Still valid for Dolphin 18.08.2 on Arch Linux.
Comment 5 Claudius Ellsel 2020-08-05 17:21:55 UTC
Hm, there is another open bug where moving files to trash on external media actually moves them to the local trash. Are you sure it gets moved to the drive's trash?

Interesting that when attaching it again the drive's trash does not seem to be included in the trash view for you. That might indeed be another bug.
Comment 6 Claudius Ellsel 2020-08-05 17:25:33 UTC
I changed this to a bug and also modified the title a bit. I hope it is okay and also in your interest that the trash on external media works as intended. Feel free to change it again or create a new bug concerning the request to instead offer a delete option for external media.