Reference Network funcfile_hash# file_hash( path: Path, algorithm: str = 'sha1', ) → str# Hash a file without loading it all into memory. Parameters: path (Path) – The file. algorithm (str) – A name that hashlib.new accepts. Returns: The hexadecimal digest. Return type: str