cannot zip file with zipfile

Scott Hathaway scott_hathaway at riskvision.com
Tue Aug 21 15:48:51 EDT 2001


I cannot seem to create a valid zip file (one that WinZip can open).  Here
is my code:

from zipfile import ZipFile
a = ZipFile("c:\\test.zip","w",8)
print a.write("c:\\test.txt")

Can someone please tell me what am I doing wrong?

Thanks,
Scott





More information about the Python-list mailing list