check_sha1

check_sha1(filename, sha1_hash)

Check whether the sha1 hash of the file content matches the expected hash.

Parameters:
filename : str

Path to the file.

sha1_hash : str

Expected sha1 hash in hexadecimal digits.

Returns:
bool

Whether the file content matches the expected hash.