Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TreeWatcher ¶
type TreeWatcher struct { Event chan *fsnotify.FileEvent Error chan error // contains filtered or unexported fields }
TreeWatcher is a wrapper around fsnotify.Watcher that monitors all directories within a tree, and automatically adds watches on newly created directories under the tree. All events from the fsnotify.Watcher are passed through to the TreeWatcher's channels.
func New ¶
func New() (*TreeWatcher, error)
func (*TreeWatcher) Close ¶
func (tw *TreeWatcher) Close()
func (*TreeWatcher) Watch ¶
func (tw *TreeWatcher) Watch(path string) error
func (*TreeWatcher) WatchTree ¶
func (tw *TreeWatcher) WatchTree(path string) error
Click to show internal directories.
Click to hide internal directories.