Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
func New ¶
New returns a new inotify-based filesystem watcher. It supports 1 option:
"latency" = time.Duration
func (*Interface) Files ¶
func (x *Interface) Files(paths []string, obs internal.ObserveFunc) (cancel func(), err error)
Files watches a list of files, calling the observer with any events.
func (*Interface) Recursively ¶
func (x *Interface) Recursively(path string, obs internal.ObserveFunc) (cancel func(), err error)
Recursively watches all files/folders under the given path, calling the observer with any events.
Click to show internal directories.
Click to hide internal directories.