Chathuranga Chandrasekara
Chathuranga Chandrasekara

Reputation: 20906

Is there any way to read the properties of a Compressed Archive?

Are there any tool / simple method to read the properties (Ex : Compression level, Dictionary size, word size etc)?

Upvotes: 0

Views: 102

Answers (3)

hd1
hd1

Reputation: 34657

In python, the tarfile and zipfile modules provide support for gzipped/bzipped tar files and zip files respectively save for multi-disk zipfiles, which are not yet supported.

Upvotes: 0

Norman Ramsey
Norman Ramsey

Reputation: 202505

To uncompress, modify, recompress, zip and unzip should be all you need on any Unix platform. On Windows I'm not up to date, but at one time the best version was PKZIP (but you may have to pay for that). Certainly cygwin should include zip and unzip; I don't know about mingw.

Upvotes: 0

Alan Haggai Alavi
Alan Haggai Alavi

Reputation: 74232

If you want to get the properties of a .Zip archive, you can try my Zip-Parser. It is written in Perl and you may have to install some modules.

Remember to comment out 'Compressed Data' in zip_parser.conf by prepending with a #, else you will be printing lots of compressed data.

Upvotes: 1

Related Questions