Answers for "rust create directory if not exists"

0

rust create directory if not exists

use std::fs;

fn main() -> std::io::Result<()> {
    fs::create_dir_all("/some/dir")?;
    Ok(())
}
Posted by: Guest on April-21-2021

Code answers related to "rust create directory if not exists"

Browse Popular Code Answers by Language