Skip to content

Commit

Permalink
logging a message when folder is created
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerdagithub committed Apr 15, 2024
1 parent b76008c commit ac62432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data_collection/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_file_from_url(url, save_to, override=False):
directory = os.path.dirname(save_to)
if not os.path.exists(directory):
os.makedirs(directory)
logging.info(f"Created directory: {directory}")

# check if file exist and needs to override
if os.path.exists(save_to) and not override:
Expand Down

0 comments on commit ac62432

Please sign in to comment.