From 7cc780ed18456e3e70953de548df78648029cf94 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Fri, 19 Jun 2020 16:51:39 +0200 Subject: [PATCH] Create output directory automatically --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 8450428..9fcbb36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,6 +29,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/"; #[tokio::main] async fn main() { let opt = Opt::from_args(); + create_dir(&opt.output).await.expect("failed to create output directory"); // need this because task scheduling is WIP // (would wait forever on paniced task) *PANIC_HOOK.lock() = panic::take_hook();