INNER CODE UNIT · Go
DeleteRows
cryptag/cryptag · servers/cryptag-webserver/main.go:291
func DeleteRows(w http.ResponseWriter, req *http.Request) {
_ = req.ParseForm()
randtags, err := parseTags(req.Form["tags"])
if err != nil {
help.WriteError(w, err.Error(), http.StatusBadRequest)
return
}
rowFiles, err := filepath.Glob(path.Join(filesystem.rowsPath, "*"))
if err != nil {
help.WriteError(w, "Error getting file list: "+err.Error(),
http.StatusInternalServerError)
return
}
if types.Debug {
log.Printf("About to delete all files with all these tags: %#v\n",