diff --git a/api.go b/api.go index 0f30068..160c532 100644 --- a/api.go +++ b/api.go @@ -230,7 +230,7 @@ func apiNote(dir string, w http.ResponseWriter, r *http.Request, readOnly bool) return } - if !info.ModTime().UTC().Equal(noteDelete.LastMtime.UTC()) { + if !info.ModTime().Truncate(time.Second).UTC().Equal(noteDelete.LastMtime.Truncate(time.Second).UTC()) { respondWithError(w, "Refusing to delete. File changed on disk.", http.StatusConflict) return }