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