Skip to content
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

Allow Zip::Entry#extract to handle destinations with missing directories #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

weynsee
Copy link

@weynsee weynsee commented Nov 5, 2015

Zip::Entry#extract raises an error when attempting to extract to a nested file path that is missing some directories. This PR makes sure all directories are created before extracting to the file path.

I'm not sure if this should be handled by the client (by creating the folders before calling it) but since extract already handles non-existent directories for directory paths I thought it would be consistent to do this for files as well.

@stinnux
Copy link

stinnux commented Aug 4, 2017

I have the same problem and encountered various zip files today that are missing the directory. Highly recommend merging the PR

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.

None yet

2 participants