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 piranna
Recipients piranna
Date 2011-03-06.18:24:12
SpamBayes Score 1.7471607e-06
Marked as misclassified No
Message-id <1299435853.5.0.715190951157.issue11415@psf.upfronthosting.co.za>
In-reply-to
Content
I've created a new, compresed ZipFile in memory (using StringIO) and added several files to it with ZipFile.write(), later i've added a new file with the same name of one of the previous ones just to overwrite it with some dinamic data using ZipFile.writestr(), and finally i've closed the StringIO ZipFile and writen to the hard disk.

Secondly, i've opened it with FileRoller and found that the overwritten file is twice inside the ZipFile, the first and the second one, with different sizes and timestamp. Luckily, extracting one of them just get only the more recent one, but the fact is that the old one is already there and it's listed instead being overwritten with the last, new one, and i don't know if it's a bug (i think so) or just a feature.
History
Date User Action Args
2011-03-06 18:24:13pirannasetrecipients: + piranna
2011-03-06 18:24:13pirannasetmessageid: <1299435853.5.0.715190951157.issue11415@psf.upfronthosting.co.za>
2011-03-06 18:24:12pirannalinkissue11415 messages
2011-03-06 18:24:12pirannacreate