fix: 更新无效方法。
This commit is contained in:
parent
4358d7fdd4
commit
f9b029bcc1
@ -203,7 +203,7 @@ func DeleteTask(c *gin.Context) {
|
|||||||
return
|
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 {
|
if err != nil {
|
||||||
app.Error(c, -1, err, fmt.Sprintf("删除文件失败,%v", err.Error()))
|
app.Error(c, -1, err, fmt.Sprintf("删除文件失败,%v", err.Error()))
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user