Ronald Oussoren added the comment:

I'd write the extended header when the current file size is larger than the 
zip64 limit (that is, when 'st.st_size > ZIP64_LIMIT' in the write method.

That way the minimal header size is used whenever possible.

As you noted this can cause problems when the file grows beyond the limit while 
it is stored in the zipfile, but IMHO storing data while it is modified is 
asking for problems anyway.

BTW. I haven't actually review the patch yet.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9720>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to