Function simpleio::create_dir
source · pub fn create_dir(path: &Path) -> DirStatus
Expand description
Creates the directory if it does not already exist.
§Example
use simpleio as sio;
match sio::create_dir(sio::get_home().unwrap().as_path()){
sio::DirStatus::Exists => println!("Home exists."),
sio::DirStatus::Created => println!("Home created."),
sio::DirStatus::Error => println!("Home could not be created."),
}