[−][src]Function test_common::fs::crypto::hash_file
pub fn hash_file(file_path: &str) -> Result<Digest, Error>
Hash file content with SHA-256.
This way we can check two files have same content.
Original code got from Rust Cookbok
Parameters:
- file_path: Absolute path name as a &str.
Returns:
File has as a Digest or a Error if any ocurred.