This commit is contained in:
恍兮惚兮 2024-04-26 07:28:56 +08:00
parent ab9d28f988
commit 0ce8a0e636

View File

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