From eec890cd02e8d10d60b532a3787eed624a2c81ed Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 13 May 2023 14:20:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E7=9A=84=E5=8D=B8=E8=BD=BD=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/command/command.py b/model/command/command.py index b0b1abb66..e0f39c428 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -109,7 +109,7 @@ class Command: if role != "admin": return False, f"你的身份组{role}没有权限删除插件", "plugin" try: - os.remove(os.path.join(ppath, l[2])) + os.removedirs(os.path.join(ppath, l[2])) if l[2] in self.cached_plugins: del self.cached_plugins[l[2]] return True, "插件卸载成功~", "plugin"