From 5be338b5aa30b3d524afba3468408424bb2d871b Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 14 Oct 2024 03:43:22 +0700 Subject: [PATCH] Ensure folder exists before copying the file --- updater.py | 1 + 1 file changed, 1 insertion(+) diff --git a/updater.py b/updater.py index 2ab85d4..c6cba01 100644 --- a/updater.py +++ b/updater.py @@ -46,6 +46,7 @@ class Updater: for path, type in file_paths: source = os.path.join(target_dir, path) destination = source.replace(target_dir, os.path.dirname(os.path.realpath(__file__))) + self.utils.create_folder(os.path.dirname(destination)) shutil.move(source, destination) if ".command" in os.path.splitext(path)[-1] and os.name != "nt": self.run({