From 987ac436656fd2c729b60035cca14a54abf01b25 Mon Sep 17 00:00:00 2001 From: Kamil Zabielski <50334623+limakzi@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:10:01 +0100 Subject: [PATCH] fix: Fix _archives creation (#997) --- tools/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/utils.py b/tools/utils.py index 3837b3d6b..e905d23e0 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -52,6 +52,7 @@ def download(url: str, dst: str) -> None: """Download the file at the given URL `url` to the file with path `dst`.""" response = requests.get(url, stream=True) response.raise_for_status() # raise a meaningful (?) exception if there was e.g. a 404 error + os.makedirs(os.path.dirname(dst), exist_ok=True) with open(dst, "wb") as f: for chunk in response.raw.stream(16384, decode_content=False): if chunk: