diff options
| author | bors <bors@rust-lang.org> | 2024-06-16 07:44:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-16 07:44:33 +0000 |
| commit | 12b33d36f3de0fb30ca08c49f5b2f4fa111861a4 (patch) | |
| tree | 38297d690a100f33aecb2041c360a177e13bd054 /library/std/src | |
| parent | 5639c21fb38d26a72420fe627be25d4f6dfc1f3b (diff) | |
| parent | 623cf23621f816a8936c627ec8a73a933b3f956f (diff) | |
| download | rust-12b33d36f3de0fb30ca08c49f5b2f4fa111861a4.tar.gz rust-12b33d36f3de0fb30ca08c49f5b2f4fa111861a4.zip | |
Auto merge of #126540 - jhpratt:rollup-fzzz8j3, r=jhpratt
Rollup of 4 pull requests Successful merges: - #125112 (Document behavior of `create_dir_all` wrt. empty path) - #126127 (Spell out other trait diagnostic) - #126309 (unify git command preperation) - #126539 (Update `Arc::try_unwrap()` docs) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/fs.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 2132097fde4..cf9a3446522 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2386,6 +2386,9 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> { /// If this function returns an error, some of the parent components might have /// been created already. /// +/// If the empty path is passed to this function, it always succeeds without +/// creating any directories. +/// /// # Platform-specific behavior /// /// This function currently corresponds to multiple calls to the `mkdir` |
