Skip to main content

file_facts_with_progress

Function file_facts_with_progress 

Source
pub async fn file_facts_with_progress(
    path: &Path,
    progress: impl Fn(u64) + Send + Sync,
) -> Result<(u64, [u8; 32]), FileError>
Expand description

Size and SHA-256 digest of the file at path, reporting cumulative bytes consumed after each read.