conan.tools.files checksums๏
conan.tools.files.check_md5()๏
- check_md5(conanfile, file_path, signature)๏
Check that the specified
MD5hash of thefile_pathmatches the actual hash. If doesnโt match it will raise aConanException.- Parameters:
conanfile โ The current recipe object. Always use
self.file_path โ Path of the file to check.
signature โ Expected MD5 hash.
conan.tools.files.check_sha1()๏
- check_sha1(conanfile, file_path, signature)๏
Check that the specified
SHA-1hash of thefile_pathmatches the actual hash. If doesnโt match it will raise aConanException.- Parameters:
conanfile โ Conanfile object.
file_path โ Path of the file to check.
signature โ Expected SHA-1 hash.
conan.tools.files.check_sha256()๏
- check_sha256(conanfile, file_path, signature)๏
Check that the specified
SHA-256hash of thefile_pathmatches the actual hash. If doesnโt match it will raise aConanException.- Parameters:
conanfile โ Conanfile object.
file_path โ Path of the file to check.
signature โ Expected SHA-256 hash.