Skip to content

Added experimental option to show folder sizes #7244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 8, 2021

Conversation

cinqmilleans
Copy link
Contributor

@cinqmilleans cinqmilleans commented Dec 8, 2021

Resolved / Related Issues
It is not practical to know the total size occupied by a folder. You have to select one, open its property panel, and wait for the calculation. It is therefore not easy to spot a folder whose size is larger than desired. Closes #3944 #6880.

Details of Changes
Add experimental setting for show folder size. The size is calculated asynchronously with no visible loss in performance. The size is visible in details view and status bar.

Works for local folders & library & OneDrive.
Should work on other clouds and ftp but I haven't tested because I don't have one.
Does not work inside a zip file. It can come later.

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

@yaira2 yaira2 self-requested a review December 8, 2021 16:09
@yaira2
Copy link
Member

yaira2 commented Dec 8, 2021

@cinqmilleans I found an issue that if you select a folder when the size is still calculating, the size in the status bar doesn't get updated.

@cinqmilleans
Copy link
Contributor Author

@yaichenbaum Indeed. I take care of it.

@cinqmilleans
Copy link
Contributor Author

cinqmilleans commented Dec 8, 2021

@yaichenbaum I was able to correct the problem. However I notice that the cumulative size is not displayed when there are folders in the multiselection. I will try to add this functionality.

@cinqmilleans
Copy link
Contributor Author

@yaichenbaum The size is now displayed for a selection containing folders.

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Dec 8, 2021
@yaira2 yaira2 changed the title Experimental - Showing folder size Added experimental option to show folder sizes in the details grid Dec 8, 2021
@yaira2 yaira2 changed the title Added experimental option to show folder sizes in the details grid Added experimental option to show folder sizes Dec 8, 2021
@yaira2 yaira2 merged commit 1061709 into files-community:main Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Showing folder size in details view
2 participants