| Summary: | Dolphin Size column counts two extra items for directories with >=200 entries | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | leouscin |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | ASSIGNED --- | ||
| Severity: | normal | CC: | david, dolphin-bugs-null, kde, roopeshor3 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Can confirm the same on latest Arch with Dolphin/KDE Apps 25.08.1-1, Frameworks 6.18.0-1, qt6-base 6.9.2-1. I have a directory with 1402 items (no hidden files, dot dirs, etc) and it also shows 2 extra files. *** Bug 511601 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1135 |
Dolphin's "Size" column counts two extra items when a directory has 200 or more entries. The Information panel shows the correct number of items. Steps to reproduce: 1. Create a directory with 199 empty files (for example using `mkdir -p ~/tmp/repro_199 && seq -w 199 | xargs -I{} touch ~/tmp/repro_199/f_{}`). 2. Create another directory with 200 empty files (`mkdir -p ~/tmp/repro_200 && seq -w 200 | xargs -I{} touch ~/tmp/repro_200/f_{}`). 3. Open the parent directory containing these folders in Dolphin and switch to Details view so the Size column shows the number of items. 4. Note that `repro_199` shows 199 items in both the Size column and the Information panel. 5. Note that `repro_200` shows 202 items in the Size column but 200 items in the Information panel. Similarly, a directory with 331 files shows 333 items in the Size column and 331 in the Information panel. Expected behaviour: The Size column should report the actual number of items, consistent with the Information panel and `find -maxdepth 1` output. Additional information: - OS: Arch Linux (Plasma 6) as of September 2025. - Dolphin version: current Arch package. - The bug is not related to hidden files or the '.'/ '..' entries, since it occurs with plain directories containing only regular files. - The threshold appears to be exactly 200 entries; directories with fewer than 200 files are counted correctly.