[New-bugs-announce] [issue22230] 'python -mzipfile -c' does not zip empty directories
Ryan Wilson
report at bugs.python.org
Tue Aug 19 19:37:14 CEST 2014
New submission from Ryan Wilson:
Running command:
$ mkdir foo; python -mzipfile -c foo.zip foo; python -mzipfile -e foo.zip dest
ls: cannot access dest: No such file or directory
This is because 'foo.zip' is empty since running 'python -mzipfile -c foo.zip foo' does not zip empty directories.
Running 'unzip foo.zip' also produces:
Archive: foo.zip
warning [foo.zip]: zipfile is empty
The following posted patch fixes this issue.
----------
components: Library (Lib)
files: add_empty_dirs_to_zipfile.patch
keywords: patch
messages: 225535
nosy: ryantimwilson
priority: normal
severity: normal
status: open
title: 'python -mzipfile -c' does not zip empty directories
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file36416/add_empty_dirs_to_zipfile.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22230>
_______________________________________
More information about the New-bugs-announce
mailing list