mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 06:55:31 +00:00
Attempt to improve the `std::fs::create_dir_all` docs related to atomicity The original paragraph was added in rust-lang/rust#124520. It doesn't match the actual code logic. It says "function returns an error" if "the parent components" _(which also implies directories)_ "have been created already". The code is as follows:e88e854634/library/std/src/fs.rs (L3146)e88e854634/library/std/src/fs.rs (L3160)These lines suppress all errors if any path component is a directory. I've updated the paragraph to mirror this.