◐ Shell
reader mode source ↗
Skip to content

bpo-4833: Add ZipFile.mkdir#32160

Merged
ethanfurman merged 8 commits into
python:mainfrom
dignissimus:bpo-1590744
Apr 5, 2022
Merged

bpo-4833: Add ZipFile.mkdir#32160
ethanfurman merged 8 commits into
python:mainfrom
dignissimus:bpo-1590744

Conversation

@dignissimus

@dignissimus dignissimus commented Mar 28, 2022

Copy link
Copy Markdown
Contributor

Add ZipFile.mkdir method to create directories inside zip archives.

https://bugs.python.org/issue4833

@ethanfurman ethanfurman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Very thorough PR. Question in-line.

@dholth

dholth commented Mar 28, 2022

Copy link
Copy Markdown
Contributor

interesting, since it is also possible to imply directories (if there is a file in there) but this would allow an empty directory

@ethanfurman

Copy link
Copy Markdown
Member

@dignissimus : ping me in a few days if no one has merged this yet -- I want to give other folks the chance to review.

@ethanfurman

Copy link
Copy Markdown
Member

@dignissimus Actually, I forgot: have you either verified or added a test for creating a directory using the existing write() method? (Yes, it should work -- nevertheless, a test is good).

@dignissimus

Copy link
Copy Markdown
Contributor Author

@dignissimus Actually, I forgot: have you either verified or added a test for creating a directory using the existing write() method? (Yes, it should work -- nevertheless, a test is good).

@ethanfurman The tests have been added!

@merwok merwok changed the title bpo-4833: Adds ZipFile.mkdir Apr 1, 2022
@dignissimus

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants