diff --git a/src/main.rs b/src/main.rs index ab9fc9d..a735953 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ mod util; fn init_storage() { if !crate::util::consts::path::APP_STORAGE.exists() { - std::fs::create_dir(crate::util::consts::path::APP_STORAGE.as_path()).unwrap(); + std::fs::create_dir_all(crate::util::consts::path::APP_STORAGE.as_path()).unwrap(); } }