Attempt to use long paths on Windows

This commit is contained in:
FliegendeWurst 2021-01-24 17:52:01 +01:00
parent 711bfe8d17
commit 77101a7173

View File

@ -31,6 +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
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)