問題描述
有沒有辦法讀取壓縮存檔的屬性? (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)?
參考解法
方法 1:
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.
方法 2:
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.
方法 3:
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.
(by Chathuranga Chandrasekara、Alan Haggai Alavi、Norman Ramsey、hd1)