The file_size value for a directory should be the sum of size of all items underneath it #5

Open
opened 2025-07-01 09:09:13 +00:00 by vaibhav · 0 comments
Owner

Right now, the file_size for a directory is always set to 0. However, it would be beneficial to have this value set to the sum total of all file_sizes for entries inside that directory.

For example: If a directory contains 3 items out of which 2 are files, each of size 2 GB and another directory whose contents amount to a total of 1 GB, then the file_size of the current directory shall be set to (2 + 2 + 1 =) 5 GB (in bytes).

WON'T FIX (NOTE): This requires us to write code that can potentially cause enormous memory consumption (in case the file-tree for a folder is bigger than what could/should be held in memory) or we would have to create a task based system which would be a very different approach requiring redesign of the system on many fronts. These changes are out of scope of the free/open version as of now. Hence it will NOT BE DONE. Not right now at least. The project, milestone etc. are being removed for the same.

Right now, the `file_size` for a directory is always set to 0. However, it would be beneficial to have this value set to the sum total of all `file_size`s for entries inside that directory. For example: If a directory contains 3 items out of which 2 are files, each of size 2 GB and another directory whose contents amount to a total of 1 GB, then the `file_size` of the current directory shall be set to (2 + 2 + 1 =) 5 GB (in bytes). **WON'T FIX (NOTE)**: This requires us to write code that can potentially cause enormous memory consumption (in case the file-tree for a folder is bigger than what could/should be held in memory) or we would have to create a task based system which would be a very different approach requiring redesign of the system on many fronts. These changes are out of scope of the free/open version as of now. Hence it will NOT BE DONE. Not right now at least. The project, milestone etc. are being removed for the same.
vaibhav added this to the Future project 2025-07-10 13:13:31 +00:00
vaibhav modified the project from Future to Alpha 0.2.0 2025-07-18 11:13:39 +00:00
vipul self-assigned this 2025-08-14 15:51:10 +00:00
vaibhav modified the project from Beta 0.3 to Beta 0.4 2025-08-18 11:05:07 +00:00
vaibhav removed this from the Release Beta 0.3 milestone 2025-08-18 11:05:14 +00:00
vaibhav removed this from the Beta 0.4 project 2025-08-19 11:28:01 +00:00
vaibhav added this to the Future project 2025-08-29 08:11:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
techrail/chamber#5
No description provided.