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

Extract directory entries after all others when using Archive::unpack. #249

Merged
merged 1 commit into from May 21, 2021

Conversation

afranchuk
Copy link
Contributor

If they are extracted in order, they may fail if a directory's
permissions prevent descendant files from being written. So extracting
them after all other entries ensures that any files that need to be
created can be without being subject to the final permissions.

Closes #242.

If they are extracted in order, they may fail if a directory's
permissions prevent descendant files from being written. So extracting
them after all other entries ensures that any files that need to be
created can be without being subject to the final permissions.

Closes alexcrichton#242.
@alexcrichton
Copy link
Owner

Seems reasonable to me, thanks!

@alexcrichton alexcrichton merged commit 7f2a355 into alexcrichton:master May 21, 2021
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.

Permission error unpacking a directory hierarchy with write-protected folders
2 participants