Create output directory automatically

This commit is contained in:
FliegendeWurst 2020-06-19 16:51:39 +02:00
parent 15bb53c770
commit 7cc780ed18

View File

@ -29,6 +29,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/";
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
let opt = Opt::from_args(); let opt = Opt::from_args();
create_dir(&opt.output).await.expect("failed to create output directory");
// need this because task scheduling is WIP // need this because task scheduling is WIP
// (would wait forever on paniced task) // (would wait forever on paniced task)
*PANIC_HOOK.lock() = panic::take_hook(); *PANIC_HOOK.lock() = panic::take_hook();