From 2c55267b245108fa56b7ae0bbc0ccb4c84dfb7f5 Mon Sep 17 00:00:00 2001 From: Matt Russell Date: Thu, 9 Jul 2020 10:37:50 +0100 Subject: [PATCH] Create temp downloads directory ahread of usage. --- src/azanium/artefact.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/azanium/artefact.py b/src/azanium/artefact.py index 97bd78d..910eb71 100644 --- a/src/azanium/artefact.py +++ b/src/azanium/artefact.py @@ -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)