Function create_or_reuse_dir

Source
pub fn create_or_reuse_dir(dirname: &Path) -> Result<()>
Expand description

Creates a directory or does nothing if the directory already exists.

Returns the underlying error if the directory can’t be created. The function will also fail if intermediate directories on the path do not already exist.