[issue11415] ZipFile don't overwrite compresed files at create

Amaury Forgeot d'Arc report at bugs.python.org
Mon Mar 7 13:46:17 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> Luckily, extracting one of them just get only the more recent one

It's not only luck: a Zip file has a "central directory" used to retrieve data. ZipFile just appends the new file data to the end of the Zip file, then write the updated directory structure.

Removing the old content is another matter, and is similar to issue6818.
This requires a whole copy of the zip file, and so far, no acceptable patch was proposed.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11415>
_______________________________________


More information about the Python-bugs-list mailing list