about summary refs log tree commit diff
path: root/library/std/src/fs.rs
diff options
context:
space:
mode:
authorFluid <90795031+fluiderson@users.noreply.github.com>2025-05-23 23:57:38 +0300
committerFluid <90795031+fluiderson@users.noreply.github.com>2025-05-25 00:34:56 +0300
commit6d47489e568a80b2c29c56b3664cc41c30a8f8fa (patch)
tree112abda8cb342f8cb3b0a4dd20a1a40b28835b51 /library/std/src/fs.rs
parente88e85463468ce5d5ce468414eb69e3b15fa8d42 (diff)
downloadrust-6d47489e568a80b2c29c56b3664cc41c30a8f8fa.tar.gz
rust-6d47489e568a80b2c29c56b3664cc41c30a8f8fa.zip
improve the `std::fs::create_dir_all` docs related to atomicity
Diffstat (limited to 'library/std/src/fs.rs')
-rw-r--r--library/std/src/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 509e673bdb8..8047c0c03ad 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -2803,8 +2803,8 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
 /// Recursively create a directory and all of its parent components if they
 /// are missing.
 ///
-/// If this function returns an error, some of the parent components might have
-/// been created already.
+/// This function is not atomic. If it returns an error, any parent components it was able to create
+/// will remain.
 ///
 /// If the empty path is passed to this function, it always succeeds without
 /// creating any directories.