funcfile_hash#

file_hash(
path: Path,
algorithm: str = 'sha1',
) → str#

Hash a file without loading it all into memory.

Parameters:
Returns:

The hexadecimal digest.

Return type:

str