Bug 509064

Summary: Inconsistent reporting of non-empty directory as empty with hidden files, in main display, tooltips and properties.
Product: [Applications] dolphin Reporter: Mel Smith <kde>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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