s3sfe.utils module¶
-
s3sfe.utils.
dtnow
()[source]¶ Helper for testing; just returns datetime.datetime.now()
Returns: current datetime - datetime.datetime.now()
Return type: datetime.datetime
-
s3sfe.utils.
md5_file
(path)[source]¶ Return the MD5 sum of the contents of the file at
path
.Parameters: path (str) – path to the file Returns: md5sum of the file at the given path, as a hex digest Return type: str
-
s3sfe.utils.
read_filelist
(path)[source]¶ Given the path to the filelist, read the file and return a list of all paths contained in it.
Parameters: path (str) – path to filelist Returns: list of files and directories to back up Return type: list
-
s3sfe.utils.
read_keyfile
(path)[source]¶ Read the AES256 key from the file.
Parameters: path (str) – path to the key file Returns: 32-bit AES256 key Return type: bytes