Delete Archive after unarchiving

This commit is contained in:
Nikurasu 2023-01-25 10:13:55 +01:00
parent 372972fa2b
commit 138a926999
No known key found for this signature in database

View file

@ -24,6 +24,6 @@ func PostUpdate(ctx *gin.Context) {
}
file, err := os.Open("./" + siteUpdate.Filename)
unpackit.Unpack(file, "./")
os.RemoveAll("./" + siteUpdate.Filename)
ctx.JSON(http.StatusOK, gin.H{"data": siteUpdate.Filename, "err": err})
}