pub fn create_directory(dir_name: String) -> io::Result<()> {
    let mut dir = env::current_dir()?;
    dir.push(dir_name);
    if dir.is_dir() {
        Ok(())
    } else {
        DirBuilder::new().create(dir)
    }
}
/// Create directory named `dir_name` under the current directory if it doesn't exist.
Create directory named `dir_name` under the current directory if it doesn't exist.
Create directory named ` dir_name ` under the current directory if it doesn ' t exist .
pub fn create_directory(dir_name: String) -> io::Result<()> {
    let mut dir = env::current_dir()?;
    dir.push(dir_name);
    if dir.is_dir() {
        Ok(())
    } else {
        DirBuilder::new().create(dir)
    }
}
pub fn create_directory ( dir_name : String ) -> io :: Result < ( ) > { let mut dir = env :: current_dir ( ) ? ; dir . push ( dir_name ) ; if dir . is_dir ( ) { Ok ( ( ) ) } else { DirBuilder :: new ( ) . create ( dir ) } }
Create directory named `dir_name` under the current directory if it doesn't exist.
Create directory named ` dir_name ` under the current directory if it doesn ' t exist .
dir_name
String
dir_name
String