Documentation ¶
Overview ¶
Package rfsnotify implements recursive folder monitoring by wrapping the excellent fsnotify library
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { Events chan fsnotify.Event Errors chan error // contains filtered or unexported fields }
Watcher wraps fsnotify.Watcher. When fsnotify adds recursive watches, you should be able to switch your code to use fsnotify.Watcher
func NewBufferedWatcher ¶ added in v0.2.0
NewBufferedWatcher establishes a new watcher with the underlying OS and begins waiting for events. The channel used to receive the FS events is buffered with the given size.
func NewWatcher ¶
NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
func (*Watcher) AddRecursive ¶
AddRecursive starts watching the named directory and all sub-directories.
func (*Watcher) Close ¶
func (w *Watcher) Close()
Close removes all watches and closes the events channel.
func (*Watcher) RemoveRecursive ¶
RemoveRecursive stops watching the named directory and all sub-directories.