mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Always log new files
This commit is contained in:
parent
a2622449e8
commit
cf54f9ad04
@ -431,6 +431,7 @@ fn process(ilias: Arc<ILIAS>, path: PathBuf, obj: Object) -> impl std::future::F
|
||||
let mut reader = stream_reader(resp.bytes_stream().map_err(|x| {
|
||||
io::Error::new(io::ErrorKind::Other, x)
|
||||
}));
|
||||
println!("Writing to {:?}..", path);
|
||||
let file = AsyncFile::create(&path).await.unwrap();
|
||||
let mut file = BufWriter::new(file);
|
||||
tokio::io::copy(&mut reader, &mut file).await.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user