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" )