Skip to content

Commit

Permalink
Create temp downloads directory ahread of usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Russell committed Jul 9, 2020
1 parent 8e9addc commit 2c55267
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/azanium/artefact.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

def prepare(cmd_ctx, func):
f_name = func.__name__
os.makedirs(DOWNLOAD_DIR, exist_ok=True)
tmpdir = tempfile.mkdtemp(suffix='-db-migration-downloads',
dir=DOWNLOAD_DIR)
download_dir = os.path.join(tmpdir, f_name)
Expand Down

0 comments on commit 2c55267

Please sign in to comment.