Calculate "size" of folder by adding up its contents

Bug #1170042 reported by Cassidy James Blaede
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Files
Fix Released
Wishlist
Julián Unrrein

Bug Description

When I'm viewing a folder, I sometimes wonder how large it is. Right now, this is impossible to find from the Properties dialog or the column view. Instead, FIles should calculate the size of the folder and display it.

While this might take a while to compute initially (being recursive and all), I wonder if it's something that could be cached and then just updated later if something changes in the folder.

Related branches

Changed in pantheon-files:
importance: Undecided → Wishlist
Revision history for this message
Danielle Foré (danrabbit) wrote :

In order for this to make sense (speed wise), we'd have to make sure that this does not block loading the directory. It would have to be something that occurs after the directory is loaded.

Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

Yeah, for sure. Loading and showing stuff should have priority, this is a niceity that can be calculated after.

Revision history for this message
Ezra Sharp (nicekiwi) wrote :

Keen for this, although the folder-content-size is eventually displayed it seems to calculate it every time, non-cached. Depending on the size can take updates of 10 seconds.

Fooling me into believing the directory is empty.

4.1Kb... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Oh no wait!! Stop, its actually 58.3Gb.. my bad.

Revision history for this message
Ezra Sharp (nicekiwi) wrote :

Presumably this information would be indexed when eOS has a working system search option?

Cody Garver (codygarver)
Changed in pantheon-files:
status: New → Triaged
milestone: none → 0.2
Revision history for this message
Julián Unrrein (junrrein) wrote :

Perhaps we could solve this by showing a spinner in the properties window while the size is being calculated?

Revision history for this message
Julián Unrrein (junrrein) wrote :

Or just put a label that says "Calculating size..." and then swap that out with the size of the folder when we get that information.

Changed in pantheon-files:
assignee: nobody → Julián Unrrein (junrrein)
status: Triaged → In Progress
Cody Garver (codygarver)
Changed in pantheon-files:
milestone: 0.2 → 0.1.2
Cody Garver (codygarver)
Changed in pantheon-files:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.