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 terytkon
Recipients aymill, terytkon
Date 2010-07-25.18:34:12
SpamBayes Score 0.1085197
Marked as misclassified No
Message-id <1280082854.58.0.375424672065.issue9172@psf.upfronthosting.co.za>
In-reply-to
Content
Hi!
I encountered the same problem and I debugged it a bit..
I think it not doing the entire unzipping again, but the problem is that the winzip packaged zip actually contains all file and directory entries and it fails trying to create already existing directory (because the dir has been created for the files that are in it).

I tried a quick and dirty fix for the zipfile _extract_member method, which basically should fix the problem! 

So here I create the directory only if it is not already existing, to get those empty directories created inside the zip.

zipfile:
959:        if member.filename[-1] == '/':
<add>           if not os.path.isdir(targetpath):
960:                os.mkdir(targetpath)
History
Date User Action Args
2010-07-25 18:34:14terytkonsetrecipients: + terytkon, aymill
2010-07-25 18:34:14terytkonsetmessageid: <1280082854.58.0.375424672065.issue9172@psf.upfronthosting.co.za>
2010-07-25 18:34:12terytkonlinkissue9172 messages
2010-07-25 18:34:12terytkoncreate