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 2014年08月17日 17:53 by Antony.Lee, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| zipfile_add_dirs.patch | serhiy.storchaka, 2014年09月24日 10:35 | review | ||
| Messages (6) | |||
|---|---|---|---|
| msg225457 - (view) | Author: Antony Lee (Antony.Lee) * | Date: 2014年08月17日 17:53 | |
Compare
$ mkdir foo; zip -q foo{,}; unzip -l foo.zip
Archive: foo.zip
Length Date Time Name
--------- ---------- ----- ----
0 2014年08月17日 10:49 foo/
--------- -------
0 1 file
and
$ mkdir foo; python -mzipfile -c foo{.zip,}; unzip -l foo.zip
Archive: foo.zip
warning [foo.zip]: zipfile is empty
A patch was posted by Ryan Wilson in related issue #22201.
|
|||
| msg225459 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年08月17日 19:01 | |
Directory entry should be added not only when directory is empty. See also issue20912. |
|||
| msg225530 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年08月19日 12:34 | |
I think zipfile should add an entry for directories as zip tool does. Here is a patch. In additional it fixes zipfile -c for some corner cases (when arguments end with /, . or .. component). |
|||
| msg226408 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年09月05日 08:26 | |
If there are no objections I'll commit the patch soon. |
|||
| msg227437 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年09月24日 10:35 | |
Hmm, looks as I forgot to attach a patch. |
|||
| msg228446 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年10月04日 10:56 | |
New changeset 911da1072099 by Serhiy Storchaka in branch '2.7': Issue #22219: The zipfile module CLI now adds entries for directories https://hg.python.org/cpython/rev/911da1072099 New changeset 981d18930d6d by Serhiy Storchaka in branch '3.4': Issue #22219: The zipfile module CLI now adds entries for directories https://hg.python.org/cpython/rev/981d18930d6d New changeset d61d2e5a0956 by Serhiy Storchaka in branch 'default': Issue #22219: The zipfile module CLI now adds entries for directories https://hg.python.org/cpython/rev/d61d2e5a0956 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:07 | admin | set | github: 66415 |
| 2014年10月04日 11:53:05 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2014年10月04日 10:56:22 | python-dev | set | nosy:
+ python-dev messages: + msg228446 |
| 2014年09月24日 10:35:20 | serhiy.storchaka | set | files:
+ zipfile_add_dirs.patch keywords: + patch messages: + msg227437 |
| 2014年09月05日 08:26:26 | serhiy.storchaka | set | messages: + msg226408 |
| 2014年08月19日 17:40:45 | serhiy.storchaka | link | issue22230 superseder |
| 2014年08月19日 12:34:22 | serhiy.storchaka | set | messages:
+ msg225530 stage: needs patch -> patch review |
| 2014年08月17日 19:01:56 | serhiy.storchaka | set | messages: + msg225459 |
| 2014年08月17日 18:41:08 | serhiy.storchaka | set | versions:
+ Python 2.7 nosy: + serhiy.storchaka assignee: serhiy.storchaka type: behavior stage: needs patch |
| 2014年08月17日 17:53:45 | Antony.Lee | create | |