pub fn verify_digest(path: &Path, expected: Option<&str>) -> Result<(), Error>
Hash path and compare it with expected, when one is declared.
path
expected