perf: 修改move为copy,clean code

This commit is contained in:
Raven95676
2025-05-06 18:39:11 +08:00
parent 5206d750ac
commit ccdbb01513
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ def manage_plugin(
if is_update and backup_path.exists():
shutil.rmtree(backup_path)
if is_update:
shutil.move(target_path, backup_path)
shutil.copytree(target_path, backup_path)
try:
click.echo(