Skip to content
Snippets Groups Projects
Unverified Commit 8ea3e6fa authored by GyDi's avatar GyDi
Browse files

fix: create dir panic

parent f23c83e6
No related branches found
No related tags found
No related merge requests found
......@@ -67,13 +67,13 @@ pub fn init_app(package_info: &PackageInfo) {
let res_dir = dirs::app_resources_dir(package_info);
if !app_dir.exists() {
fs::create_dir(&app_dir).unwrap();
fs::create_dir_all(&app_dir).unwrap();
}
if !log_dir.exists() {
fs::create_dir(&log_dir).unwrap();
fs::create_dir_all(&log_dir).unwrap();
}
if !profiles_dir.exists() {
fs::create_dir(&profiles_dir).unwrap();
fs::create_dir_all(&profiles_dir).unwrap();
}
init_log(&log_dir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment