Skip to main content

download_with_progress

Function download_with_progress 

Source
pub fn download_with_progress(
    url: &str,
    dest_path: &Path,
    quiet: bool,
) -> Result<(), Error>
Expand description

Downloads a file from the given URL to the destination path with a progress bar.

ยงErrors

Returns an mlua::Error if the download fails after several attempts or if there is an error creating the destination file.