Skip to main content

file_facts

Function file_facts 

Source
pub async fn file_facts(path: &Path) -> Result<(u64, [u8; 32]), FileError>
Expand description

Size and SHA-256 digest of the file at path, streamed. The one filesystem primitive for computing a file’s identity facts; callers hold the protocol reference and compare.