Doc comment.

This commit is contained in:
Bas Wiel, van de 2024-04-30 19:04:05 +02:00
parent cee8ef9a8a
commit e670fe6de8
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ impl ZipDownloader {
Ok(())
}
/// Pull a file from the URL and save it to the file path.
fn download_file(url: &str, file_path: &Path) -> std::io::Result<()> {
let mut response = reqwest::blocking::get(url).unwrap();
let total_size = response.content_length().unwrap_or(0);