surveil ( ) {

Returns a watcher for a given path and, if it is a directory, watches each file contained. May filter children with regular expression or simple file extension matching.

Arguments

| String path

The path to a file or directory to watch.

optional
| surveil:Options options

Override default options.

Modules

Options

Operating system interface options for an individual filesystem watcher instance.

Spy

Watches a path, whether the path is a file or a directory containing many files. Doesn't care whether the path exists or not, whether it disappears and reappears, etc.