Skip to content
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

Calculate & display folder sizes #349

Open
pavner opened this issue Dec 31, 2023 · 1 comment
Open

Calculate & display folder sizes #349

pavner opened this issue Dec 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pavner
Copy link

pavner commented Dec 31, 2023

It's great that the number of files in a folder can be seen in the bottom bar. It would be even better if the size of a folder were displayed to its right when you're outside the fodler.

Otherwise, when inside a folder, showing the sum of the sizes of all selected items / all contained files would also be a solution.

Many thanks!

@pavner pavner added the enhancement New feature or request label Dec 31, 2023
@ganeshrvel
Copy link
Owner

Thank you for the feedback!

I'll check if it's feasible to display the size of a folder and the sum of sizes for selected items without a significant performance impact.

I'm planning a total rewrite of OpenMTP from scratch, so hopefully, we can include these features in future versions.

Stay tuned, and many thanks for your input!

vishwamartur added a commit to vishwamartur/openmtp that referenced this issue Dec 10, 2024
Related to ganeshrvel#349

Add functionality to calculate and display folder sizes in the file explorer.

* **FileExplorer.jsx**
  - Import `calculateFolderSize` from `app/utils/files.js`.
  - Add a function to calculate folder sizes and update state.
  - Update the render method to display folder sizes.

* **FileExplorerTableFooterStatusBarRender.jsx**
  - Import `calculateFolderSize` from `app/utils/files.js`.
  - Add a function to calculate the total size of items in a folder.
  - Update the render method to display the total size of items in a folder.

* **FileExplorerTableBodyListRender.jsx**
  - Import `calculateFolderSize` from `app/utils/files.js`.
  - Add a function to calculate and display folder sizes.
  - Update the render method to display folder sizes.

* **files.js**
  - Add a function `calculateFolderSize` to calculate the size of a folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants