From f09c6719038d23d24a061a9bcd9951e942180cd2 Mon Sep 17 00:00:00 2001 From: Christoffer Buchholz Date: Mon, 8 Apr 2013 01:51:04 +0200 Subject: [PATCH] watch all file events on files inside folder being watched --- fsnotify_bsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsnotify_bsd.go b/fsnotify_bsd.go index abbafda..7a16b3e 100644 --- a/fsnotify_bsd.go +++ b/fsnotify_bsd.go @@ -378,7 +378,7 @@ func (w *Watcher) watchDirectoryFiles(dirPath string) error { if fileInfo.IsDir() == false { // Watch file to mimic linux fsnotify - e := w.addWatch(filePath, NOTE_DELETE|NOTE_WRITE|NOTE_RENAME) + e := w.addWatch(filePath, NOTE_ALLEVENTS) if e != nil { return e } -- 2.50.1