From: Christoffer Buchholz Date: Sun, 7 Apr 2013 23:51:04 +0000 (+0200) Subject: watch all file events on files inside folder being watched X-Git-Tag: v1.7.2~371^2 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=f09c6719038d23d24a061a9bcd9951e942180cd2;p=fsnotify.git watch all file events on files inside folder being watched --- 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 }