Added makedirs in download_file

This commit is contained in:
MischaPanch authored and Michael Panchenko committed 2025-07-25 00:09:41 +02:00
1 parent debcccbee2
commit 435e745fb5
1 file changed
+1
+1
View File
@@ -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: