Question regarding create_dir_all()
ckaran opened this issue · 0 comments
ckaran commented
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?