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.
Created on 2013年02月12日 05:29 by william.mallard, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| shutil_zip64.patch | william.mallard, 2013年02月12日 05:29 | review | ||
| shutil_zip64_by_default.patch | william.mallard, 2013年02月13日 15:50 | review | ||
| shutil_zip64_by_default.patch | william.mallard, 2013年02月13日 19:25 | Added documentation. | review | |
| Messages (8) | |||
|---|---|---|---|
| msg181941 - (view) | Author: William Mallard (william.mallard) * | Date: 2013年02月12日 05:29 | |
This patch enables creation of 64-bit zip files via make_archive(). make_archive uses ZipFile to create zip files. ZipFile already supports creation of 64-bit archives via a kwarg, but make_archive hard-codes it to 32-bit. This patch exposes the option in a backwards compatible way. |
|||
| msg182009 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年02月13日 10:10 | |
Would there be a way to automatically switch the flag as necessary? (i.e. when writing more than 2GB, I guess) |
|||
| msg182018 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年02月13日 10:55 | |
> Would there be a way to automatically switch the flag as necessary? > (i.e. when writing more than 2GB, I guess) Yes, there is a special flag for this in zipfile. It is named allowZip64. The only reason to use allowZip64=False is when you expect to unzip a zipfile with a tool which doesn't support zip64 (PKUNZIP.EXE for DOS?) and you want to keep yourself from unintentional zipping a file larger than 2 GiB. Perhaps sometime we should to change the default value for allowZip64 from False to True. |
|||
| msg182027 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年02月13日 12:10 | |
> Yes, there is a special flag for this in zipfile. It is named > allowZip64. Then I think shutil should set allowZip64 to True by default. People who want fine-grained control over the zipfile's characteristics can still use the zipfile module directly. |
|||
| msg182032 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年02月13日 13:14 | |
Agree. |
|||
| msg182043 - (view) | Author: William Mallard (william.mallard) * | Date: 2013年02月13日 15:50 | |
Ok, here's a patch that makes zip64 the default in make_archive() when format='zip'. I also agree that ZipFile should set allowZip64=True by default. (PKZIP has supported zip64 since 2001!) |
|||
| msg182052 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年02月13日 17:17 | |
This should be reflected in the documentation. |
|||
| msg182059 - (view) | Author: William Mallard (william.mallard) * | Date: 2013年02月13日 19:25 | |
Documentation added. See attached. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:41 | admin | set | github: 61391 |
| 2015年02月05日 21:20:26 | serhiy.storchaka | set | status: open -> closed stage: patch review -> resolved |
| 2015年02月05日 21:20:11 | serhiy.storchaka | set | superseder: Use allowZip64=True by default dependencies: - Use allowZip64=True by default resolution: out of date |
| 2013年02月13日 19:25:26 | william.mallard | set | files:
+ shutil_zip64_by_default.patch messages: + msg182059 |
| 2013年02月13日 17:17:07 | serhiy.storchaka | set | dependencies:
+ Use allowZip64=True by default messages: + msg182052 |
| 2013年02月13日 15:50:41 | william.mallard | set | files:
+ shutil_zip64_by_default.patch messages: + msg182043 |
| 2013年02月13日 13:14:26 | serhiy.storchaka | set | messages: + msg182032 |
| 2013年02月13日 12:10:17 | pitrou | set | messages: + msg182027 |
| 2013年02月13日 10:55:30 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg182018 |
| 2013年02月13日 10:10:24 | pitrou | set | nosy:
+ hynek, tarek, pitrou messages: + msg182009 |
| 2013年02月12日 13:16:11 | r.david.murray | set | stage: patch review versions: + Python 3.4, - Python 3.3 |
| 2013年02月12日 05:29:24 | william.mallard | create | |