From 7f55b912d65cbffcd0bd54c0964f896d49c95f77 Mon Sep 17 00:00:00 2001 From: Benjamin Radovsky Date: Sat, 17 Aug 2019 10:37:52 +1000 Subject: [PATCH] Keep path as well as old path for remove event. --- watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher.go b/watcher.go index 57969f2..7aeae50 100644 --- a/watcher.go +++ b/watcher.go @@ -600,7 +600,7 @@ func (w *Watcher) pollEvents(files map[string]os.FileInfo, evt chan Event, select { case <-cancel: return - case evt <- Event{Remove, "", path, info}: + case evt <- Event{Remove, path, path, info}: } } }