mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Use the async fs::canonicalize
This commit is contained in:
parent
7961132930
commit
a8189de518
@ -31,7 +31,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/";
|
|||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let mut opt = Opt::from_args();
|
let mut opt = Opt::from_args();
|
||||||
opt.output = fs::canonicalize(opt.output); // use long paths on Windows
|
opt.output = fs::canonicalize(opt.output).await.expect("failed to canonicalize directory"); // use long paths on Windows
|
||||||
create_dir(&opt.output).await.expect("failed to create output directory");
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user