Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 0de2ed0

Browse files
committed
fix: create config directory if it doesn't exist
1 parent c749229 commit 0de2ed0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ async fn main() -> Result<(), CDEError> {
107107
match conf_path.try_exists() {
108108
Ok(false) | Err(_) => {
109109
log::error!("Cannot find config at '{:?}'", conf_path);
110+
let _ = fs::create_dir(conf_path.parent().unwrap());
110111
let _ = fs::write(conf_path, "");
111112
}
112113
_ => {}

0 commit comments

Comments
 (0)