Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { // Done channel used to indicate when to stop the watcher Done chan bool // Path is absolute path to watch. Path string // Notifier holds the fs watcher Notifier *fsnotify.Watcher }
Watcher is a wrapper to fsnotify watcher and represents a path to watch for usr changes.
func (*Watcher) AddToWatchList ¶
AddToWatchList adds path to watch.
func (*Watcher) RemoveFromWatchList ¶
RemoveFromWatchList traverse a path and remove all nested dir path from the notifier watch list.
Click to show internal directories.
Click to hide internal directories.