rust create folder if not exists code example
Example: rust create directory if not exists
use std::fs;
fn main() -> std::io::Result<()> {
fs::create_dir_all("/some/dir")?;
Ok(())
}
use std::fs;
fn main() -> std::io::Result<()> {
fs::create_dir_all("/some/dir")?;
Ok(())
}