zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
6.03k stars 409 forks source link

incorrect sorting by size #1305

Closed pyviw closed 1 month ago

pyviw commented 1 month ago

Folders that have been created by apps is showed as big size folders even when this folders is totally empty.

For example I have torrent manager app, when I instal the app , that app create a folder in Downloads directory. But when sorting Downloads directory by size it show the folder that have been created by the app on The top even when this folder is empty.

zhanghai commented 1 month ago

Do you have a screenshot?

pyviw commented 1 month ago

All this Folders have been created automatically by the Apps in Download folder.

And I check if this problem in system files, and yes its also effect other parts. for example gallery folders.

App version: v1.7.4 Android version: 12 App source: F-Droid

retouch_2024091320261742 Screenshot_20240913-202638_Material Files.

zhanghai commented 1 month ago

I see. The folders are not sorted by their contents, because it may take minutes to calculate the sizes of their contents. All folders themselves actually have the same size of 4KiB.

pyviw commented 1 month ago

I try to sort the Downloads directory by size for some cleanup. But now two days the same state.

I was expecting : Sort by size -> Folders first -> folders by size also

Thanks ❤️