Use the async fs::canonicalize

This commit is contained in:
FliegendeWurst 2021-01-24 18:11:01 +01:00
parent 7961132930
commit a8189de518

View File

@ -31,7 +31,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/";
#[tokio::main]
async fn main() {
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");
// need this because task scheduling is WIP
// (would wait forever on paniced task)