Hi,
I am getting following error message while unziping a .zip file. Any
help or idea is highly appreciated.
Error message>>>
Traceback (most recent call last):
File "C:\Zip_Process\py\test2_new.py", line 15, in <module>
outfile.write(z.read(name))
IOError: (22, 'Invalid argument')
The script is here:
*****************************
fh = open('T:\\test\\*.zip', 'rb')
z = zipfile.ZipFile(fh)
for name in z.namelist():
outfile = open(name, 'wb')
outfile.write(z.read(name))
print z
print outfile
outfile.close()
fh.close()
********************************
<<winmail.dat>>
-- http://mail.python.org/mailman/listinfo/python-list
