This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 4481b6c
authored
Unrolled build for rust-lang#125112
Rollup merge of rust-lang#125112 - tbu-:pr_create_dir_all_empty, r=dtolnay
Document behavior of `create_dir_all` wrt. empty path
The behavior makes sense because `Path::new("one_component").parent() == Some(Path::new(""))`, so if one naively wants to create the parent directory for a file to be written, it simply works.
Closes rust-lang#105108 by documenting the current behavior.1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2389 | 2392 | | |
2390 | 2393 | | |
2391 | 2394 | | |
| |||
0 commit comments