qis.get_local_file_path¶
- qis.get_local_file_path(file_name, file_type=None, local_path='/home/docs/.qis/outputs', folder_name=None, key=None, add_current_date=False, date_format='%Y%m%d_%H%M')[source]¶
file data management is organised as: file_path = RESOURCE_PATH/folder_name/file_name+file_type.value default value without optional arguments will be: file_path = RESOURCE_PATH/file_name.file_type.value
for datasets, we can define datasets keys so the file paths are: file_path = RESOURCE_PATH/folder_name/file_name+_key+file_type.value or if file_name is None: file_path = RESOURCE_PATH/folder_name/key+file_type.value
if local_path is not None: file_path=local_path if local_path in not None and file_name and file_type is passed: file_path=local_path//file_name+file_type.value if local_path in not None and file_name is None and key is not None and file_type is passed: file_path=local_path//key+file_type.value if local_path in not None and file_name and key and file_type is passed: file_path=local_path//file_name_key+file_type.value