Bug 509064 - Inconsistent reporting of non-empty directory as empty with hidden files, in main display, tooltips and properties.
Summary: Inconsistent reporting of non-empty directory as empty with hidden files, in ...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 25.08.0
Platform: CachyOS Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-03 11:27 UTC by Mel Smith
Modified: 2025-09-03 11:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mel Smith 2025-09-03 11:27:29 UTC
SUMMARY

Non-empty directory with only hidden files is reported as empty, unless hidden files are shown.
This results in a risk of opaque deletion of files when the "empty" parent directory is deleted.

STEPS TO REPRODUCE
1.
mkdir ~/notempty
touch ~/notempty/.hiddenfile
2. navigate to ~/notempty in dolphin 
3. toggle hidden files view on and off
right clicking on the new folder, selecting Properties simply states it contains one item.

OBSERVED RESULT
 "Folder is empty" message when hidden, and the file appearing when hidden files are revealed.
The tooltip rollover message (which is not default on my installation), states "Hidden files: 1" but "Size: 0 items."


EXPECTED RESULT
In English would be something like "Folder contains hidden files. Click here to reveal, are press <ctrl>-H" (or whatever configured keyboard shortcut exists)
Roll-over message Size: 1 item, Hidden files: 1 would be better?
right clicking on the new folder, selecting Properties states it contains one item, and one hidden item (to be consistent with tooltip and reality).

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION