mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Create output directory automatically
This commit is contained in:
parent
15bb53c770
commit
7cc780ed18
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user