Always log new files

This commit is contained in:
FliegendeWurst 2020-04-22 14:07:30 +02:00
parent a2622449e8
commit cf54f9ad04

View File

@ -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();