]> go.fuhry.dev Git - fsnotify.git/commitdiff
watch all file events on files inside folder being watched
authorChristoffer Buchholz <christoffer.buchholz@gmail.com>
Sun, 7 Apr 2013 23:51:04 +0000 (01:51 +0200)
committerChristoffer Buchholz <christoffer.buchholz@gmail.com>
Sun, 7 Apr 2013 23:51:04 +0000 (01:51 +0200)
fsnotify_bsd.go

index abbafdad7af6d7acc57100d7b965788c1854895e..7a16b3e829822521998dc419e7a56b99b9a6a0e3 100644 (file)
@@ -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
                        }