-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Explicit directories for zipfiles #49083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We have an issue with the Python cheeseshop which is probably an issue When we create a zip file with standard linux tools ('zip os-zipped.zip " Error unpacking zipfile:[Errno 2] No such file or directory: Turns out that the Python-zipped version does not include explicit It would be useful to have an option which allows the explicit creation |
it looks like this is fixed in 2.6.2. I'm attaching a zipfile which cannot be extracted in 2.6.1 Running |
Actually now creating directories in zipfile is possible with ZipFile.writestr(special_zip_info, b''). However a special method (like ZipFile.mkdir(name)) can be useful. |
I'm looking into adding ZipFile.mkdir |
I've submitted the above patch. I created the ZipFile.mkdir function, created the necessary tests and wrote the documentation. I think it is ready for review. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: