This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aymill
Recipients aymill
Date 2010-07-05.18:37:09
SpamBayes Score 9.1608534e-08
Marked as misclassified No
Message-id <1278355031.26.0.155948134842.issue9172@psf.upfronthosting.co.za>
In-reply-to
Content
Tried it with a variety of unencrypted zips. Zipped with WinZip 11.1. Looks like it tries to unzip a second time after it completes the first unzip.

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> zip = ZipFile("example_1.zip")
>>> zip.extractall()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/zipfile.py", line 935, in extractall
    self.extract(zipinfo, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 923, in extract
    return self._extract_member(member, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 960, in _extract_member
    os.mkdir(targetpath)
OSError: [Errno 17] File exists: '/home/andy/projects/codedropvalidator/testdata/example'
>>>
History
Date User Action Args
2010-07-05 18:37:11aymillsetrecipients: + aymill
2010-07-05 18:37:11aymillsetmessageid: <1278355031.26.0.155948134842.issue9172@psf.upfronthosting.co.za>
2010-07-05 18:37:10aymilllinkissue9172 messages
2010-07-05 18:37:09aymillcreate