zip module

Michael Tiomkin michael at camelot-it.com
Thu Feb 3 06:10:08 EST 2000


Luiz Martins wrote:

> Is there a module somewhere to open/create zip files? I want to create
> archives that contain multiple directory hierarchies, path information,
> modifications dates etc. My archives will be used by folks using winzip
> under windows 9x

  You can use two modules.  One is 'zip', and it creates '.zip' files, and the other is 'gtar/tar
-z' that can create '.tar.gz' files.  On Unix, use 'man zip' and 'man (g)tar' to see the options.
Both '.zip' and '.tar.gz' files can be opened by Winzip.  On Unix, you can use 'unzip' and
'gtar/tar' to open the files.

  Michael




More information about the Python-list mailing list