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 2015年09月02日 00:56 by eugenek, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| make_archive_zip_dirs.patch | serhiy.storchaka, 2015年09月06日 15:48 | review | ||
| Messages (5) | |||
|---|---|---|---|
| msg249522 - (view) | Author: Eugene Kolo (eugenek) | Date: 2015年09月02日 00:56 | |
Zip file is sometimes known to only contain files and the paths to them, but it can also have have empty folders, they are zero length files with a flag set. make_archive just ignores empty directories, I propose that there should either be a flag, or it should include empty directories by default. |
|||
| msg249542 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2015年09月02日 13:33 | |
See also issue 22219. I think we should fix this in shutil as well. |
|||
| msg249997 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年09月06日 15:48 | |
Here is a patch. Should this be considered as a bug fix rather than new feature? |
|||
| msg250021 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2015年09月06日 21:00 | |
I think it could be considered a bug fix, given that other archive programs, including zipfile itself, act in this way, and it is relatively unlikely that anyone is *depending* on make_archive not including empty directories (ie: that it would break their code if these directories were included). |
|||
| msg250146 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年09月08日 02:54 | |
New changeset 705ec4145f06 by Serhiy Storchaka in branch '2.7': Issue #24982: shutil.make_archive() with the "zip" format now adds entries https://hg.python.org/cpython/rev/705ec4145f06 New changeset 19216f5f6ee0 by Serhiy Storchaka in branch '3.4': Issue #24982: shutil.make_archive() with the "zip" format now adds entries https://hg.python.org/cpython/rev/19216f5f6ee0 New changeset 142a5027ab3e by Serhiy Storchaka in branch '3.5': Issue #24982: shutil.make_archive() with the "zip" format now adds entries https://hg.python.org/cpython/rev/142a5027ab3e New changeset 6907716e7ccb by Serhiy Storchaka in branch 'default': Issue #24982: shutil.make_archive() with the "zip" format now adds entries https://hg.python.org/cpython/rev/6907716e7ccb |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:20 | admin | set | github: 69170 |
| 2015年09月17日 09:32:38 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: commit review -> resolved |
| 2015年09月08日 03:08:21 | serhiy.storchaka | set | stage: patch review -> commit review |
| 2015年09月08日 02:54:29 | python-dev | set | nosy:
+ python-dev messages: + msg250146 |
| 2015年09月06日 21:00:51 | r.david.murray | set | messages: + msg250021 |
| 2015年09月06日 15:48:58 | serhiy.storchaka | set | files:
+ make_archive_zip_dirs.patch nosy: + tarek, eric.araujo messages: + msg249997 keywords: + patch stage: needs patch -> patch review |
| 2015年09月06日 14:53:36 | serhiy.storchaka | set | assignee: serhiy.storchaka |
| 2015年09月02日 13:33:28 | r.david.murray | set | versions:
+ Python 3.4, Python 3.5, Python 3.6 nosy: + r.david.murray, serhiy.storchaka messages: + msg249542 stage: needs patch |
| 2015年09月02日 00:56:17 | eugenek | create | |