use std::{fs, path::Path}; fn main() { let mut result = Ok(()); if !Path::new("~/.tmux-thing").exists() { result = fs::create_dir("~/.tmux-thing"); } println!("{:?}", result) }