2.1.22.10.1. cli.helpers.tmp_handler.TmpHandler
- class cli.helpers.tmp_handler.TmpHandler(tmp_dir_parent: Path = WindowsPath('C:/Users/user/AppData/Local/fhg-iisb/foxbms/Cache/1.10.0'), tmp_folder_prefix: str = 'temp_data_foxcli_')
Class to handle temporary files
- __init__(tmp_dir_parent: Path = WindowsPath('C:/Users/user/AppData/Local/fhg-iisb/foxbms/Cache/1.10.0'), tmp_folder_prefix: str = 'temp_data_foxcli_') None
Initialise the TmpHandler
Methods
__init__
([tmp_dir_parent, tmp_folder_prefix])Initialise the TmpHandler
check_for_tmp_file
(file_path, file_extension)Check whether there the data is already saved in the temporary directory.
get_hash_name
(file_path, file_extension)get_hash_name generates a file name based on the absolute path of a file