fix: 更新无效方法。

This commit is contained in:
lanyulei 2022-11-02 00:26:47 +08:00
parent 4358d7fdd4
commit f9b029bcc1

View File

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