We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f44fd commit 6e9f4b6Copy full SHA for 6e9f4b6
library/std/src/fs.rs
@@ -2803,8 +2803,8 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
2803
/// Recursively create a directory and all of its parent components if they
2804
/// are missing.
2805
///
2806
-/// This function returns an error if any of the path components are not a directory and already
2807
-/// exist.
+/// This function is not atomic. If it returns an error, any parent components it was able to create
+/// will remain.
2808
2809
/// If the empty path is passed to this function, it always succeeds without
2810
/// creating any directories.
0 commit comments