Function file_system::create_dir_if_not_exist[][src]

pub fn create_dir_if_not_exist<P: AsRef<Path>>(dir: P) -> Result<bool>

Creates a new, empty directory at the provided path. Returns true on success, false if the directory already exists. Otherwise the raw error will be returned.