mach.io.utils.verify_file_integrity# mach.io.utils.verify_file_integrity( file_path: Path, expected_hash: str, digest: str | Callable[[], hashlib._Hash], ) → bool# Verify file integrity using specified hash algorithm. Parameters: file_path – Path to the file to verify expected_hash – Expected hash value digest – Hash algorithm to use, e.g. “sha256” or hashlib.sha256 Returns: True if hash matches, False otherwise