This repository has been archived on 2025-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
chkbit/chkbit/context.py
2023-12-19 23:49:52 +01:00

11 lines
373 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"]:
raise Exception(f"{hash_algo} is unknown.")