Bug 391844 - Trash bin ignores size of hidden files (starting with dot)
Summary: Trash bin ignores size of hidden files (starting with dot)
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: 2018-03-14 08:41 UTC by Alexander Meshcheryakov
Modified: 2018-04-16 20:04 UTC (History)
2 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 Alexander Meshcheryakov 2018-03-14 08:41:15 UTC
Removing hidden (starting with dot) files or directories does not reduce free space of trash as accounted by KDE.

To reproduce:
1. Open trash:// in dolphin, see current free space in bottom right of window. Lets say it X MB. Free some space in trash if X < 20MB
2. create test files: `fallocate --length 5M normal && fallocate --length 10M .hidden`
3. Move those files to trash, e.g. : `kioclient move normal .hidden trash:/`

Expected result:
Free space in trash should be displayed as X-15 MB

Actual result:
Free space becomes X-5 MB

In my case this bugs leads to ~/.local/share/Trash taking twice as much space as I allocated. Newly deleted content replaces only files/dirs that does NOT start with dot and dot files just pile up.