From f9b029bcc1bbbd96bdb2ddc68204ca6854b056a1 Mon Sep 17 00:00:00 2001 From: lanyulei <934744141@qq.com> Date: Wed, 2 Nov 2022 00:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=97=A0=E6=95=88?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/process/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/process/task.go b/apis/process/task.go index 82187bf..b40d390 100644 --- a/apis/process/task.go +++ b/apis/process/task.go @@ -203,7 +203,7 @@ func DeleteTask(c *gin.Context) { return } - err := os.Remove(fmt.Sprintf("%v/%v", viper.GetString("script.path"), fullName)) + err := os.RemoveAll(fmt.Sprintf("%v/%v", viper.GetString("script.path"), fullName)) if err != nil { app.Error(c, -1, err, fmt.Sprintf("删除文件失败,%v", err.Error())) return