Skip to main content

content_hash

Function content_hash 

Source
pub fn content_hash(snapshot: &Snapshot) -> Result<String, ScanError>
Expand description

The content hash of a snapshot’s files: sha256: and the hex digest of each file’s path, length and bytes, in path order. It depends only on the files’ paths and contents, so every worker with the same code gets the same hash.

§Errors

ScanError::Read if a file can’t be read (e.g. it was removed since the scan).