Skip to main content

fetch_blob_to_file

Function fetch_blob_to_file 

Source
pub async fn fetch_blob_to_file<S: BlobSource>(
    source: &S,
    hash: &str,
    expected_len: u64,
    dest: &Path,
) -> Result<(), FetchError>
Expand description

Fetch a whole blob into the file dest — the unmetered convenience over RangedFetcher::fetch_to_file, the file-backed counterpart of fetch_blob_into.