[New-bugs-announce] [issue4833] Explicit directories for zipfiles

Robert Schuppenies report at bugs.python.org
Sun Jan 4 18:09:28 CET 2009

New submission from Robert Schuppenies <robert.schuppenies at gmail.com>:

We have an issue with the Python cheeseshop which is probably an issue
with Python itself as well.

When we create a zip file with standard linux tools ('zip os-zipped.zip
*'), uploading it works fine. But if we use the zipfile module from
Python and try to upload the result to the cheeseshop, we get this error

" Error unpacking zipfile:[Errno 2] No such file or directory: 

Turns out that the Python-zipped version does not include explicit
directories. The OS-zipped version contains "directory/,
directory/asizeof.txt", the Python-zipped file only
"directory/asizeof.txt". Digging deeper, Python has no way to explicitly
add directories to a zip file.

It would be useful to have an option which allows the explicit creation
of directories inside of zip files. This would help when working with
applications which do not create directories if they are not explicitly

components: Library (Lib)
messages: 79070
nosy: schuppenies
severity: normal
status: open
title: Explicit directories for zipfiles
type: feature request

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list