MCPcopy Create free account
hub / github.com/adobe/Marinus / check_save_location

Function check_save_location

python3_cron_scripts/get_original_ct_logs.py:413–421  ·  view source on GitHub ↗

Check to see if the directory exists. If the directory does not exist, it will automatically create it.

(storage_manager, save_location, source)

Source from the content-addressed store, hash-verified

411
412
413def check_save_location(storage_manager, save_location, source):
414 """
415 Check to see if the directory exists.
416 If the directory does not exist, it will automatically create it.
417 """
418 if storage_manager.storage_location == StorageManager.LOCAL_FILESYSTEM:
419 storage_manager.create_folder(save_location + "ct-" + source)
420 else:
421 storage_manager.create_folder("ct-" + source)
422
423
424def main(logger=None):

Callers 1

mainFunction · 0.70

Calls 1

create_folderMethod · 0.45

Tested by

no test coverage detected