create_directory

Function create_directory 

Source
pub fn create_directory(path: &Path) -> Result<()>
Expand description

Creates a directory at the specified path.

§Arguments

  • path - The path where the directory should be created.

§Errors

Returns an io::Error if the directory cannot be created. This could be due to various reasons such as insufficient permissions, the directory already existing, or other I/O-related errors.