Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions runtime_config/awsdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
import os
import json
import requests
import pathlib
from tqdm import tqdm
from collections import namedtuple
from botocore.client import Config
Expand Down Expand Up @@ -372,19 +373,17 @@ def main(s3bucket, s3directory, driver_path=DEFAULT_DRIVER_PATH,
driver_files = _get_file_info(objects, DRIVER_EXTENSIONS)

if driver_files:
# Create a directory for the drivers if one doesn't already exist
if not os.path.isdir(driver_path + project_name):
os.mkdir(driver_path + project_name)
# Create a directory for the drivers
pathlib.Path(driver_path + project_name).mkdir(parents=True, exist_ok=True)

total_download_size += sum(driver_files.sizes)

# Get info about any config files in the s3 directory
config_files = _get_file_info(objects, CONFIG_EXTENSIONS)

if config_files:
# Create a directory for the config files if one doesn't already exist
if not os.path.isdir(config_path):
os.mkdir(config_path)
# Create a directory for the config files
pathlib.Path(driver_path + project_name).mkdir(parents=True, exist_ok=True)

total_download_size += sum(config_files.sizes)

Expand Down