Skip to main content

hash_file

Function hash_file 

Source
pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>
Expand description

Hash a file by path. Single open + fstat to minimize syscalls. Uses read() for small files, mmap for large files.