mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
fs: clarify create_dir_all succeeds if path exists (#8149)
This commit is contained in:
@@ -26,6 +26,9 @@ use std::path::Path;
|
||||
/// when a directory is being created (after it is determined to not exist) are
|
||||
/// outlined by [`fs::create_dir`].
|
||||
///
|
||||
/// If the final component at `path` already exists and is a directory, this
|
||||
/// function will also return successfully without error.
|
||||
///
|
||||
/// Notable exception is made for situations where any of the directories
|
||||
/// specified in the `path` could not be created as it was being created concurrently.
|
||||
/// Such cases are considered to be successful. That is, calling `create_dir_all`
|
||||
|
||||
Reference in New Issue
Block a user