FileIntegrityCheck#
- class MCEq.config.FileIntegrityCheck(filename, checksum='')[source]#
Bases:
objectA class to check a file integrity against provided checksum
- filename#
path to the file
- Type:
str
- checksum#
hex of sha256 checksum
- Type:
str
- succeeded():
returns True if checksum and calculated checksum of the file are equal
- get_file_checksum():
returns checksum of the file
Methods Summary
Methods Documentation