Bug 421831

Summary: Details view mode does not give us the size of folders located in a Samba share
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: view-engine: details modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kfm-devel, meven29, meven
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: "Number of items" mode
"Size of contents, up to" mode

Description Patrick Silva 2020-05-20 16:53:43 UTC
Created attachment 128644 [details]
"Number of items" mode

SUMMARY
"Size" column of details view mode don't work as expected with folders located in a samba share. If "Folder size displays:" is set to "Number of items" in Dolphin settings, "Size" column says "0 items". If "Size of contents, up to" option is selected instead, "Size" column says "unknown". See the attached screenshots please.

STEPS TO REPRODUCE
1. open Dolphin and set details view mode
2. open a samba share containing folders
3. 

EXPECTED RESULT
details view mode should work with samba shares in the same way it does with
local file system.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Comment 1 Patrick Silva 2020-05-20 16:54:55 UTC
Created attachment 128645 [details]
"Size of contents, up to" mode
Comment 2 Méven Car 2020-05-25 14:19:39 UTC
Currently we don't do this on purpose, network shares are much slower devices and listing file directory size would impact a lot dolphin reactivity while.

It could be better engineered to give priority to IO originating from the user for instance, but the total size would still appear with a noticeable delay.

And this would make dolphin freezes when the network connection is lost or similar issues (we don't have a proper way to detect unresponsive network filesystem and so to act on it).
This an issue we(devs) struggle with as we lack a good low-level API to use.
The pretty much only option would be to poll network shares every seconds to check if they are responsive, which is far from ideal.
Comment 3 Patrick Silva 2022-01-16 13:28:27 UTC
On neon unstable, 'Size' column of folders located in a Samba share is empty.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 4 Méven 2023-05-10 14:15:10 UTC
Size of folders located in on a network filesystem won't be supported.

For several reasons, network-wise it will be very expensive, slow and technically unreliable.

We still want to have the number of items in a folder displayed, this is a regression that I will fix.