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.