Skip to main content

create_dir_all

Function create_dir_all 

Source
pub fn create_dir_all<P>(path: P) -> Result<(), Error>
where P: AsRef<Path>,
Expand description

Creates a directory and all missing parent directories

§Errors

  • If underlying std::fs::create_dir_all fails (when using real filesystem)
  • If the path cannot be converted to a string

§Panics

  • If the DIRECTORIES RwLock fails to write to