hudman
5.1.0
Local HUD mirror manager
|
Static Public Member Functions | |
str | downloadfile (str url, str name, str outdir) |
str | renamefile (str fname, str nfname) |
str | renamefilehash (str fname, str chash) |
str | sha256hash (str fname) |
str | sha512hash (str fname) |
Static class with methods for working with HUD downloads.
|
static |
Download HUD archive file from the Internet and save it to the specified directory. :param url: URL of the remote file. :param name: HUD directory name. :param outdir: Output directory. :return: Full local path of the downloaded file. :rtype: str
|
static |
Rename file with specified name. :param fname: Full path to the source file. :param nfname: New file name. :return: Full local path of the renamed file. :rtype: str
|
static |
Rename file using its hash. :param fname: Source file name. :param chash: Source file hash sum. :return: Full local path of the renamed file. :rtype: str
|
static |
Calculate SHA-256 hash sum of the specified file. :param fname: Source file name. :return: SHA1 hash of the source file. :rtype: str
|
static |
Calculate SHA-512 hash sum of the specified file. :param fname: Source file name. :return: SHA-512 hash of the source file. :rtype: str