From 5d1f2eb458a334109f8cfbe375f079ab33107b26 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 30 Jul 2025 18:52:36 +0000 Subject: [PATCH] =?UTF-8?q?feat(attachment):=20=E2=9C=A8=20Ensure=20tempor?= =?UTF-8?q?ary=20directory=20is=20created=20for=20downloads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unshackle/core/tracks/attachment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unshackle/core/tracks/attachment.py b/unshackle/core/tracks/attachment.py index 1fcbb3d..3ca6260 100644 --- a/unshackle/core/tracks/attachment.py +++ b/unshackle/core/tracks/attachment.py @@ -62,6 +62,7 @@ class Attachment: session = session or requests.Session() response = session.get(url, stream=True) response.raise_for_status() + config.directories.temp.mkdir(parents=True, exist_ok=True) download_path.parent.mkdir(parents=True, exist_ok=True) with open(download_path, "wb") as f: