Bug 431106 - Folder size (count of files) not shown for folders on other drives
Summary: Folder size (count of files) not shown for folders on other drives
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 20.12.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-03 14:19 UTC by Krut Patel
Modified: 2021-01-16 18:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krut Patel 2021-01-03 14:19:59 UTC
SUMMARY
With the update to 20.12.0, the item count (as part of "Additional Information") is not visible for any directory (symlink or absolute) *not* belonging to the root partition.

ADDITIONAL INFORMATION
*   Counts are visible for all folders inside the / path (recursive), as long as they are in the same partition as root.
*   Counts not visible for folders inside the mounted partitions (recursive).
*   Counts do show up in the tooltip.
*   Maybe related to the previous bug I reported? https://bugs.kde.org/show_bug.cgi?id=428712

Images: https://imgur.com/a/37oZqbp

EXPECTED RESULT
The counts should be visible.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.10
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 1 Ilia Kats 2021-01-15 22:49:09 UTC
Git commit 3b4dae3556d9d470d68fe9836d4f68188fa20bcb by Ilia Kats.
Committed on 15/01/2021 at 20:41.
Pushed by iliakats into branch 'master'.

fix folder size calculation on FUSE and network file systems

KFileItem::isSlow uses hardcoded logic that returns true if the
filesystem is Smb or Nfs. However,
KFileSystemType::determineFileSystemTypeImpl on Linux returns Nfs also
if the file system in question is a FUSE file system, which includes
NTFS, sshfs, and others.
Related: bug 430778

M  +1    -1    src/kitemviews/kfileitemmodelrolesupdater.cpp

https://invent.kde.org/system/dolphin/commit/3b4dae3556d9d470d68fe9836d4f68188fa20bcb
Comment 2 Elvis Angelaccio 2021-01-16 18:22:08 UTC
Git commit a6d095fa0450237f89e240da99877f6c79b46ecc by Elvis Angelaccio, on behalf of Ilia Kats.
Committed on 16/01/2021 at 18:20.
Pushed by elvisangelaccio into branch 'release/20.12'.

fix folder size calculation on FUSE and network file systems

KFileItem::isSlow uses hardcoded logic that returns true if the
filesystem is Smb or Nfs. However,
KFileSystemType::determineFileSystemTypeImpl on Linux returns Nfs also
if the file system in question is a FUSE file system, which includes
NTFS, sshfs, and others.
Related: bug 430778

M  +1    -1    src/kitemviews/kfileitemmodelrolesupdater.cpp

https://invent.kde.org/system/dolphin/commit/a6d095fa0450237f89e240da99877f6c79b46ecc