Bug 391844

Summary: Trash bin ignores size of hidden files (starting with dot)
Product: [Frameworks and Libraries] frameworks-kio Reporter: Alexander Meshcheryakov <alexander.s.m>
Component: TrashAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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.