raise_on_digest_mismatch
- raise_on_digest_mismatch(*, path, hexdigests=None, hexdigests_remote=None, hexdigests_strict=False)[source]
Raise a HexDigestError if the digests do not match.
- Parameters:
path (
Path
) – The file path.hexdigests (
Optional
[Mapping
[str
,str
]]) – The expected hexdigests as (algorithm_name, expected_hex_digest) pairs.hexdigests_remote (
Optional
[Mapping
[str
,str
]]) – The expected hexdigests as (algorithm_name, url to file with expected hexdigest) pairs.hexdigests_strict (
bool
) – Set this to false to stop automatically checking for the algorithm(filename)=hash format
- Raises:
HexDigestError – if there are any offending hex digests The expected hexdigests as (algorithm_name, url to file with expected hexdigest) pairs.
- Return type: