Bug 426376

Summary: Directory size (number of element) not shown
Product: [Applications] dolphin Reporter: Marcin Gurtowski <halftough29a>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kfm-devel, meven.car, meven29, nate
Priority: NOR    
Version: 20.08.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Elements Size

Description Marcin Gurtowski 2020-09-10 15:39:45 UTC
SUMMARY
When "View" -> "Show Additional Information" -> "Size" is enabled, Dolphin used to display number of elements in given directory. It doesn't do that anymore.


STEPS TO REPRODUCE
1. Enable "View" -> "Show Additional Information" -> "Size"
2. Look at information under any directory

OBSERVED RESULT
Size of directory is not displayed

EXPECTED RESULT
Either number of elements should be displayed under directories or new option for it should be added to "Show Additional Information" menu.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.19
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-47-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4690K CPU @ 3.50GHz
Memory: 7.7 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2
Comment 1 Nate Graham 2020-09-10 17:43:56 UTC
I see a slightly different bug: it shows the actual calculated size rather than the number of items. ...which is actually what I would want and expect, but I know that it's not the intention of the code. Calculating explicit sizes is supposed to be working only for compact view columns. I guess it's nice that it works everywhere, but this means that the toggle for what definition of "size" to use doesn't work for this view.
Comment 2 Marcin Gurtowski 2020-10-02 13:59:20 UTC
What would be desired outcome? Should calculating actual size for every view be an option? What about showing number or elements?
Comment 3 Nate Graham 2020-10-02 17:12:08 UTC
It's supposed to be something you can toggle between: one or the other.
Comment 4 Marcin Gurtowski 2020-10-02 21:41:16 UTC
Created attachment 132076 [details]
Elements Size
Comment 5 Marcin Gurtowski 2020-10-02 21:45:30 UTC
I imagine it could be something like this.

Remaining questions are:
1. Should there be an option to show file sizes but no directory sizes?
2. Should option for number of elements be under "Additional Information" as it is on the screencap or should there be a new category for directories?
Comment 6 Méven Car 2020-11-17 11:20:21 UTC
(In reply to Marcin Gurtowski from comment #5)
> I imagine it could be something like this.
> 
> Remaining questions are:
> 1. Should there be an option to show file sizes but no directory sizes?

It exists: Configure > view modes > details setting > Folder size displays

> 2. Should option for number of elements be under "Additional Information" as
> it is on the screencap or should there be a new category for directories?

Maybe like in the screenshot, but it is not a straightforward change.
Comment 7 Marcin Gurtowski 2020-11-17 17:41:29 UTC
(In reply to Méven Car from comment #6)

It turns out this bug is actually duplicate of https://bugs.kde.org/show_bug.cgi?id=428712, but because my starting directory is a symlink, I thought it affects all directories.

With radio options between number of files and calculated size under detailed settings, I don't think there's anything else to do here.
Comment 8 Nate Graham 2020-11-17 18:03:22 UTC
Indeed.

*** This bug has been marked as a duplicate of bug 428712 ***