[issue6839] zipfile can't extract file
report at bugs.python.org
Tue Sep 14 13:35:16 CEST 2010
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
I'd prefer if the code no longer checked if the filename in the directory matches the name in the per-file header.
The reason of that is that the two don't have to match: it is relatively cheap to rename a file in the zipfile by rewriting the directory while rewriting the entire zipfile can be pretty expensive when zipfiles get large.
It's probably worthwhile to test what other zipfile tools do in the respect (e.g., create a zipfile where the filename in the header doesn't match the name in the directory and extract that zip using a number of popular tools).
(I have a slightly odd perspective on this because I regularly deal with zipfiles containing over 100K files and over 10GByte of data).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list