From 90b32c5c5afda042503405857a3a449ac9fcb6bf Mon Sep 17 00:00:00 2001 From: futile Date: Fri, 12 Sep 2025 05:12:11 +0100 Subject: [PATCH] this couldn't hurt to be `create_dir_all` instead of `create_dir` --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }