Extra C_ directory in using ZipFile

Mak makwaiming at yahoo.com
Mon Jan 20 05:43:08 EST 2003


Hi All,

I am using zipFile to zip files for backup purpose. Everything seems
to work fine except it create extra C_ directory when I try to unzip
it using winzip 8.0. For example, if I zip up c:\abc\def and unzip
right away. It will create directory tree like c:\C_\abc\def

import zipfile
...
archive= zipfile.ZipFile(filename,'w')
archive.write(filename)
archive.close()

Anyone idea ?

Note: I am using python 2.2

Thanks,

Mak




More information about the Python-list mailing list