Check to see if the directory exists. If the directory does not exist, it will automatically create it.
(storage_manager, save_location, source)
| 411 | |
| 412 | |
| 413 | def 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 | |
| 424 | def main(logger=None): |