mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +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
|
/// when a directory is being created (after it is determined to not exist) are
|
||||||
/// outlined by [`fs::create_dir`].
|
/// 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
|
/// 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.
|
/// 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`
|
/// Such cases are considered to be successful. That is, calling `create_dir_all`
|
||||||
|
|||||||
Reference in New Issue
Block a user