diff --git a/src/main.rs b/src/main.rs index 192ea38..7bbe9a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,7 @@ fn setup_ui_events() -> Receiver { } fn setup_logfile(logfile_path: &Path) { + fs::create_dir_all(logfile_path.parent().unwrap()).unwrap(); // TODO: unwrap let logfile = fs::OpenOptions::new() .write(true) .create(true)