Skip to content

Instantly share code, notes, and snippets.

@creaktive
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creaktive/10100721 to your computer and use it in GitHub Desktop.
Save creaktive/10100721 to your computer and use it in GitHub Desktop.
$ killall Mail
$ afsctool -c -s 20 -v -9 /Users/$USER/Library/Mail/V2/
/Users/stas/Library/Mail/V2/:
Number of HFS+ compressed files: 432654
Total number of files: 460614
Total number of folders: 110941
Total number of items (number of files + number of folders): 571555
Folder size (uncompressed; reported size by Mac OS 10.6+ Finder): 26326621476 bytes / 27.27 GB (gigabytes) / 25.4 GiB (gibibytes)
Folder size (compressed - decmpfs xattr; reported size by Mac OS 10.0-10.5 Finder): 16874488024 bytes / 17.2 GB (gigabytes) / 16.02 GiB (gibibytes)
Folder size (compressed): 17564481987 bytes / 17.89 GB (gigabytes) / 16.66 GiB (gibibytes)
Compression savings: 33.3%
Approximate total folder size (files + file overhead + folder overhead): 18329261558 bytes / 18.33 GB (gigabytes) / 17.07 GiB (gibibytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment