mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-19 12:45:41 +08:00
fix: create dir panic
This commit is contained in:
1 parent
2ef9d70224
commit
fd12c73cf9
1 file changed
+3
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user