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

See compression type per-file when listing multiple files? #28

Open
gingerbeardman opened this issue Jun 5, 2019 · 3 comments
Open

Comments

@gingerbeardman
Copy link
Contributor

gingerbeardman commented Jun 5, 2019

Bonjour René - ça va?

I can do -v to see compression type used on a file

$ afsctool -v "/Applications/Affinity Designer.app/Contents/PkgInfo"
/Applications/Affinity Designer.app/Contents/PkgInfo:
File is HFS+/APFS compressed.
Compression type: ZLIB in decmpfs xattr (3)
File content type: public.data
File size (uncompressed; reported size by Mac OS 10.6+ Finder): 8 bytes / 0 KB (kilobytes, base-10)
File size (compressed): 0 bytes
Compression savings: 100.0%
Number of extended attributes: 0
Total size of extended attribute data: 0 bytes
Uncompressed file size reported in compressed header: 8 bytes

And I can do -lfvvv to see what files are compressed in a folder.

$ afsctool -vlfvvv "/Applications/Affinity Designer.app"
...
/Applications/Affinity Designer.app/Contents/PkgInfo:
File size (uncompressed data fork; reported size by Mac OS 10.6+ Finder): 8 bytes / 0 KB (kilobytes, base-10)
File size (compressed data fork): 25 bytes
Compression savings: 100.0%
Number of extended attributes: 0
Total size of extended attribute data: 0 bytes
Approximate overhead of extended attributes: 268 bytes

Is there a way I can see compression type per-file when listing multiple files?

Thanks!

@gingerbeardman gingerbeardman changed the title Option to show compression scheme used on a file See compression type per-file when listing multiple files? Jun 5, 2019
@RJVB
Copy link
Owner

RJVB commented Jun 5, 2019 via email

@gingerbeardman
Copy link
Contributor Author

Yes, it's the differences in formatting that I have noticed. Multiple files omits compression type.

@gingerbeardman
Copy link
Contributor Author

Some examples:

afsctool -v /Applications/Affinity\ Designer.app/Contents/MacOS/Affinity\ Designer | grep "Compression type"

Compression type: ZLIB in resource fork (4)

afsctool -lfvvv /Applications/Affinity\ Designer.app/ | grep "Compression type"

(nothing)

afsctool -lfvvv /Applications/Affinity\ Designer.app/* | grep "Compression type"

(nothing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants