Commit 8fa3f60
committed
Document behavior of
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.create_dir_all wrt. empty path1 parent 09663fe commit 8fa3f60
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2310 | 2310 | | |
2311 | 2311 | | |
2312 | 2312 | | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
2313 | 2316 | | |
2314 | 2317 | | |
2315 | 2318 | | |
| |||
0 commit comments