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

Question regarding create_dir_all() #990

Open
ckaran opened this issue Sep 22, 2021 · 0 comments
Open

Question regarding create_dir_all() #990

ckaran opened this issue Sep 22, 2021 · 0 comments

Comments

@ckaran
Copy link

ckaran commented Sep 22, 2021

I have a question regarding async_std::fs::create_dir_all(), I hope that you can answer it here.

I know that if I try to use create_dir_all() to create the exact same path from multiple independent tasks at the same time that I risk an error being returned, but what happens if I have the same parent directory with multiple independent subdirectories all of which are being created at the same time, but from independent tasks? E.g.:

/tmp/foo/a
/tmp/foo/b
/tmp/foo/c

are all being created concurrently, from independent tasks, and initially foo doesn't exist. Will this result in an error being returned?

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

No branches or pull requests

1 participant