this couldn't hurt to be create_dir_all instead of create_dir
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ mod util;
|
|||||||
|
|
||||||
fn init_storage() {
|
fn init_storage() {
|
||||||
if !crate::util::consts::path::APP_STORAGE.exists() {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user