Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for dataset authors.

Provides helpers for downloading files, extracting archives, verifying SHA256 hashes, and managing the dataset acquisition workflow.

Functions§

acquire_dataset
Acquire a dataset file using a caller-provided preparation closure.
create_temp_dir
Create a temporary directory under the given parent directory.
download_to
Download a remote file into the given directory.
evaluate_storage
Evaluate the storage state for a dataset file.
file_sha256_matches
Verify that a file’s SHA256 hash matches an expected value.
unzip
Extract a zip archive into a target directory using ZipArchive in zip crate.