From 435e745fb55071d2d6803a4f2d00d346acfc1e2a Mon Sep 17 00:00:00 2001 From: MischaPanch Date: Fri, 25 Jul 2025 00:09:41 +0200 Subject: [PATCH] Added makedirs in download_file --- src/solidlsp/ls_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/solidlsp/ls_utils.py b/src/solidlsp/ls_utils.py index b46491ec..5110fe86 100644 --- a/src/solidlsp/ls_utils.py +++ b/src/solidlsp/ls_utils.py @@ -183,6 +183,7 @@ class FileUtils: """ Downloads the file from the given URL to the given {target_path} """ + os.makedirs(os.path.dirname(target_path), exist_ok=True) try: response = requests.get(url, stream=True, timeout=60) if response.status_code != 200: