unzipping a zipx file

Dave Angel davea at davea.name
Fri Apr 19 21:50:49 EDT 2013


On 04/19/2013 08:24 PM, Steven D'Aprano wrote:
>
>
     <SNIP>
>
> You are missing that zipx is not the same as zip, and Python very likely
> does not support the zipx compression algorithm.
>
> http://kb.winzip.com/kb/entry/7/
>
> My guess is that the zipx header is similar enough to zip that Python can
> retrieve the file names, but it cannot decompress the files.
> Unfortunately, instead of getting a nice error, it is fooled into
> thinking that it decompressed when in fact you just got junk.
>

The zip header includes a 32bit CRC for each file.  Do you know whether 
the zip module checks that CRC ?
>
> I suggest that you start with a simple example: create a plain text file
> with just a few words. Compress this single file to .zipx, then try to
> decompress it using Python. If it still fails, you will have a simple
> example that you could post here and see if others have more success.
>
>
>


-- 
DaveA



More information about the Python-list mailing list