mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
e4bc7deb78
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 #105108 by documenting the current behavior.