Deferred RemoveWatch() [https://github.com/hpcloud/tail/blob/v1.0.0/watch/inotify.go#L78] may at times cause the WatchCreate (called indirectly by NotifyDeleted() ) to run before RemoveWatch(). This prevents the WatchCreate from adding a watcher on the file’s parent directory for watching file creates, since the data structures still reflects as if the file is being being watched.
Deferred RemoveWatch() [https://github.com/hpcloud/tail/blob/v1.0.0/watch/inotify.go#L78] may at times cause the WatchCreate (called indirectly by NotifyDeleted() ) to run before RemoveWatch(). This prevents the WatchCreate from adding a watcher on the file’s parent directory for watching file creates, since the data structures still reflects as if the file is being being watched.
Possibly Fixes Issue https://github.com/hpcloud/tail/issues/90