Closed theramzay closed 2 months ago
Hey, thanks for that! I just looked at a few other apps on my end, and the size calculator seems to have trouble getting the exact size for the .app bundles. I'll work on this and see what I find.
Out of curiosity I checked the other AppCleaner and it also gets the smaller size 😆
So it turns out that there is no bug..there's 2 ways to get file sizes.
My app and the AppCleaner screenshot I just posted, use the .totalFileAllocatedSizeKey
to get the size the app actually takes on disk.
The AppCleaner screenshot you have, it looks like they decided to use the .fileSizeKey
which does match Finder but is not accurate in terms of how much space it's actually taking on your drive. If you Get Info from Remote Desktop Scanner, you can see the size on disk is actually different than what Finder has, most likely. At least on my end it is.
The .fileSizeKey
gets the logical size of the file, but the .totalFileAllocatedSizeKey
get the actual size, which could be different than the .fileSizeKey
because modern operating systems use compression, deduplication and other features to lower the size a file actually takes on disk. Sometimes it can show bigger too, really depends on how many blocks it takes on the file system.
I personally think it makes more sense to get the actual size of disk space the app is using in this case. But it's a preference, I could just add a setting in the app where the user can choose to show the logical app size or the size on disk size.
Can also use this command to get the app size of the app from Terminal. This one should be different from Finder too:
du -sk /PATH/TO/APP | cut -f1
Interesting! I think toggle will be nice solution. And/or maybe toggle to (full)view like in Finder info menu, like '9,787,635 bytes(4,6 on disk)'
So settings option like:
'Show size: [Finder-like size | Real Size | Finder-like(Real Size)]' UPDATE: I mean segment picker
Sounds good, I'll add that to the roadmap. I'm currently trying to get something else working and I haven't been able to get it working how I want all day. Once I finish that, I'll look at adding the setting.
This has been added in v3.5.1
Describe the bug
Wrong size of
.app
in Finder and inPearcleaner
To Reproduce Steps to reproduce the behavior:
Apple App Store
Remote Desktop Scanner
Pearcleaner
Expected behavior
Same size of
.app
file inPearcleaner
andFinder
Desktop (please complete the following information):
Screenshots