Skip to main content

file_hash

Function file_hash 

Source
pub fn file_hash(path: &Path) -> Option<String>
Expand description

Compute the SHA256 hex digest of a file’s content.

Returns None if the file cannot be read.