Bug 381337 - omit directories node in occupied space calculation
Summary: omit directories node in occupied space calculation
Status: CONFIRMED
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.7.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-06-17 18:22 UTC by Andrew Gaydenko
Modified: 2021-12-23 07:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaydenko 2017-06-17 18:22:19 UTC
As far as I remember Google group discussions I'm not the only dreaming about this feature. 

So, the aim is to calculate total files' size only, omitting directories nodes (taking at my system at most case 4096 bytes each).

It can be as main and the only way or another command or checkbox option - any way would be appreciated!
Comment 1 Alex Bikadorov 2017-06-19 20:19:02 UTC
Sorry, I forgot about this topic.

You're right: This is a matter of what the users expect: size of all files vs. size of
files and directories ON FILESYSTEM.

However, the new behaviour is caused by switching to KDE KIO for the calculation. This makes the values equal to the right-click->Properties page size. The new behaviour must be added there now.

(BTW: I inserted a cache for the calculated directory sizes, but they are not
automatically updated on changes.)
Comment 2 Andrew Gaydenko 2017-06-19 21:16:04 UTC
Yes, I have noticed that cache, and I guess it is acceptable to not be auto-updated (at least by default) as far as it potentially can take noticeable IO resources.
Comment 3 Alex Bikadorov 2017-10-03 15:18:20 UTC
(Coming from Bug 379170)

Both options - counting the size of directories itself or not - can be totally valid. The old behaviour was omitting directories and I guess I have to restore this.
Right now the "Size" column already shows "0 B" for empty directories.
Comment 4 Nikita Melnichenko 2021-12-23 07:38:10 UTC
As Alex is no longer an active dev, resetting assignee to default, so others could take it.