conan.tools.files checksums¶
conan.tools.files.check_md5()¶
- check_md5(conanfile, file_path, signature)¶
Check that the specified
md5sum
of thefile_path
matches withsignature
. 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 md5sum.
conan.tools.files.check_sha1()¶
- check_sha1(conanfile, file_path, signature)¶
Check that the specified
sha1
of thefile_path
matches with signature. If doesn’t match it will raise aConanException
.- Parameters:
conanfile – Conanfile object.
file_path – Path of the file to check.
signature – Expected sha1sum
conan.tools.files.check_sha256()¶
- check_sha256(conanfile, file_path, signature)¶
Check that the specified
sha256
of thefile_path
matches with signature. If doesn’t match it will raise aConanException
.- Parameters:
conanfile – Conanfile object.
file_path – Path of the file to check.
signature – Expected sha256sum