chkbit-py/chkbit/context.py
Christian Zangl 806ceb1706
blake3 #6
2023-12-20 00:09:50 +01:00

11 lines
383 B
Python

class Context:
def __init__(self, verify_index, update, force, hash_algo, skip_symlinks):
self.verify_index = verify_index
self.update = update
self.force = force
self.hash_algo = hash_algo
self.skip_symlinks = skip_symlinks
if hash_algo not in ["md5", "sha512", "blake3"]:
raise Exception(f"{hash_algo} is unknown.")