Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust create directory if not exists

use std::fs;

fn main() -> std::io::Result<()> {
    fs::create_dir_all("/some/dir")?;
    Ok(())
}
 
PREVIOUS NEXT
Tagged: #rust #create #directory #exists
ADD COMMENT
Topic
Name
2+4 =