Summary: | Dolphin 15.08.1 trash doesn't detect/respect file system boundaries causing slow deletions and excessive disk writes | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Stefan Hamminga <stefan> |
Component: | trash | Assignee: | David Faure <faure> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | frank78ac, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Bash script to detect whether two paths/files are in the same file system |
Description
Stefan Hamminga
2015-09-16 15:06:45 UTC
Thanks for the bug report. This is not a Dolphin issue - you will see the same behavior if you use another way to move the files to the trash another way, like with Plasma's Folder View widget. I am not sure if/how it is possible at all to implement what you suggest and find a generic way to find a suitable trash directory for any given path. Created attachment 94608 [details]
Bash script to detect whether two paths/files are in the same file system
I've put together a small bash script as a proof of concept to show how the heuristics could function. Qt has a canonical path function which should be similar to the readlink utility I've used, from what I read in the online docs. The tool also shows the local mount point for the different file system. I was not claiming that it is not possible to determine if two paths have the same mount point. However, even if you know that a given path does not have the same mount point as the user's home directory, it is not clear what a suitable trash directory would be. That's what I meant with my comment. But I have only very little knowledge of the Trash implementation, so I will shut up now ;-) |