From 69f387ce5aecc40c93a9f39a617283749a77c6a0 Mon Sep 17 00:00:00 2001 From: Peery Date: Fri, 2 Feb 2024 12:35:49 +0100 Subject: [PATCH] Fixed folder creation Fixed an Issue where if a nested folder was used it would not create all of them but only the parent and then crash. --- ModManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModManager.py b/ModManager.py index 76efe51..755df8b 100755 --- a/ModManager.py +++ b/ModManager.py @@ -389,7 +389,7 @@ class ModManager: parent_dir = os.path.join(self.__settings.get_game_folder(), file).split(os.path.basename(file))[0]\ .replace("/", os.path.sep) if not os.path.exists(parent_dir): - os.mkdir(parent_dir) + os.makedirs(parent_dir) if not os.path.exists(os.path.join(self.__settings.get_game_folder().replace("/", os.path.sep), file.replace("/", os.path.sep))): self.__logger.debug(