Crate file_downloader

Source

Enums§

DownloadError
Md5ChecksumVerificationError

Traits§

DownloadLink
FileDownloader
Md5DownloadLink

Functions§

base_filename_without_extension
compute_md5
download_file
download_file_with_md5
extract_md5_from_filename
fetch_md5_for_link
Fetch the MD5 checksum for the given download link. The .md5 file contains just the MD5 sum and possibly a trailing newline.
filename
filename_with_md5
find_file_locally_or_download_into
Attempt to obtain a file locally (with MD5 check) or download it otherwise.
find_local_file
get_extension_intelligent
Retrieves the intelligent full extension from a given filename, supporting known multi-segment extensions like .tar.gz.
try_use_local_file
Look for a local file with the given base name and extension, checking for a valid MD5. If it’s valid, return Some(local_path). Otherwise, return None.
verify_md5_checksum