fix: trailing spaces in watch folders, improve root folder matching, and log walk errors

This commit is contained in:
2026-06-10 23:18:22 +01:00
parent 5aa4982ca6
commit 8506dfd7f1
2 changed files with 14 additions and 2 deletions
+1
View File
@@ -104,6 +104,7 @@ func (s *Server) handleAddWatchFolder(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
f.FolderPath = strings.TrimSpace(f.FolderPath)
f.Enabled = true
if err := db.AddWatchFolder(f); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)