From 0ce8a0e63652ce1b97e502e266ab73fb951570b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Fri, 26 Apr 2024 07:28:56 +0800 Subject: [PATCH] C! --- build.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 8c726675..40b75eb3 100644 --- a/build.py +++ b/build.py @@ -113,8 +113,12 @@ def downloadcommon(): for item in contents: item_path = os.path.join(source_dir, item) - shutil.copytree(item_path, destination_dir,dirs_exist_ok=True) - #shutil.move(item_path, destination_dir) + try: + shutil.move(item_path, destination_dir) + except: + for k in os.listdir(item_path): + shutil.move(os.path.join(item_path,k), os.path.join(destination_dir,item)) + move_directory_contents( "ALL/ALL", f"{rootDir}/LunaTranslator/files/plugins" )