Skip to content

Commit 3f0595a

Browse files
committed
Ensure download cache directory exists before downloading.
1 parent 7215162 commit 3f0595a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Android/android.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def unpack_deps(host, prefix_dir, cache_dir):
217217

218218
def download(url, cache_dir):
219219
out_path = cache_dir / basename(url)
220+
cache_dir.mkdir(parents=True, exist_ok=True)
220221
if not out_path.is_file():
221222
run(["curl", "-Lf", "--retry", "5", "--retry-all-errors", "-o", str(out_path), url])
222223
else:

0 commit comments

Comments
 (0)