pub fn verify_file_sha256(
path: &Path,
expected_hash: Option<&str>,
callback: Option<&(dyn Fn(String) + Send + Sync)>,
) -> Result<String, Box<dyn Error + Send + Sync>>Expand description
Calculate a file SHA-256 hash and optionally compare it with an expected value.