From 34ffced1238f6a8ac754a1d1641f1544b90b5c90 Mon Sep 17 00:00:00 2001 From: CoolCat467 <52022020+CoolCat467@users.noreply.github.com> Date: Sun, 28 May 2023 04:06:04 -0500 Subject: [PATCH] Fixing more silly mistakes --- src/StatusBot/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StatusBot/update.py b/src/StatusBot/update.py index 0edd6e9..bc8001b 100644 --- a/src/StatusBot/update.py +++ b/src/StatusBot/update.py @@ -62,7 +62,7 @@ def make_dirpath_exist(filepath: str) -> None: """Ensure full folder structure to file path given exists. If not exists, creates it.""" - os.makedirs(filepath, exist_ok=True) + os.makedirs(os.path.dirname(filepath), exist_ok=True) async def download_coroutine(