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

Restore create_dir_all method for directory creation #260

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Aug 11, 2021

https://github.com/alexcrichton/tar-rs/releases/tag/0.4.36 can be breaking for callers using unpack_in() to unpack to the same directory in parallel. If multiple threads race to create the same parent, the later ones will now error; #259 switches to create_dir(), which errors if a folder already exists.
With the new validation added in #259 , it seems reasonable to restore create_dir_all() for the actual creation. What do you think?

@alexcrichton alexcrichton merged commit 8eecbf5 into alexcrichton:master Aug 12, 2021
@alexcrichton
Copy link
Owner

Thanks!

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