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.

Author Antony.Lee
Recipients Antony.Lee
Date 2014-08-14.23:27:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
With Python 3.4.1:

$ mkdir foo; zip -r foo{,}; python -mzipfile -e dest
  adding: foo/ (stored 0%)
Traceback (most recent call last):
  File "/usr/lib/python3.4/", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/", line 1799, in <module>
  File "/usr/lib/python3.4/", line 1777, in main
    with open(tgt, 'wb') as fp:
IsADirectoryError: [Errno 21] Is a directory: 'dest/foo/'

Note that zipfile is actually able to unzip the file:

$ python -c 'from zipfile import *; ZipFile("").extractall("dest")'

works fine.

If the zip file is created by "python -mzipfile -c foo" then there is no problem.  Likewise, if there are no folders in the zip file (but just a collection of files) then there is no problem.
Date User Action Args
2014-08-14 23:27:42Antony.Leesetrecipients: + Antony.Lee
2014-08-14 23:27:42Antony.Leesetmessageid: <>
2014-08-14 23:27:42Antony.Leelinkissue22201 messages
2014-08-14 23:27:41Antony.Leecreate