Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecursiveWatcher ¶
type RecursiveWatcher struct {
Event chan *inotify.Event
Error chan error
// contains filtered or unexported fields
}
RecursiveWatcher is an extension of inotify.Watcher that watches a directory and adds
func NewWatcher ¶
func NewWatcher() (*RecursiveWatcher, error)
NewWatcher creates a new RecursiveWatcher and returns any errors
func (*RecursiveWatcher) Close ¶
func (rw *RecursiveWatcher) Close() error
Close closes the underlying inotify watcher and stops this watcher's event loop
func (*RecursiveWatcher) Watch ¶
func (rw *RecursiveWatcher) Watch(path string) error
Watch adds path and all its descendants to the watcher