pub fn create_dir<P>(path: P, all: bool) -> Result<()>Expand description
Creates a new directory and its parent directories if all is specified,
but doesn’t fail if it already exists.
§Example
create_dir("foo", true)?;
create_dir("foo", true)?; // second time doesn't fail