Skip to content

Commit

Permalink
fix: 更新无效方法。
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolei-shuai committed Nov 1, 2022
1 parent 4358d7f commit f9b029b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/process/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9b029b

Please sign in to comment.