gem5.resources.md5_utils.html
gem5.resources.md5_utils module¶
- gem5.resources.md5_utils.md5(path: Path) str ¶
Gets the md5 value of a file or directory.
md5_file
is used if the path is a file andmd5_dir
is used if the path is a directory. An exception is returned if the path is not a valid file or directory.- Parameters:
path – The path to get the md5 of.
- gem5.resources.md5_utils.md5_dir(directory: Path) str ¶
Gives the md5 value of a directory.
This is achieved by getting the md5 hash of all files in the directory.
Note
The path of files are also hashed so the md5 of the directory changes if empty files are included or filenames are changed.
- gem5.resources.md5_utils.md5_file(filename: Path) str ¶
Gives the md5 hash of a file.
- Filename:
The file in which the md5 is to be calculated.