Add files, directories, or glob patterns for tracking. Takes an array of strings or just one string.
Removes all listeners from watched files.
Returns an object representing all the paths on the file system being watched by this
FSWatcher
instance. The object's keys are all the directories (using absolute paths unless
the cwd
option was used), and the values are arrays of the names of the items contained in
each directory.
Error occurred
Exposes the native Node fs.FSWatcher events
Fires when the initial scan is complete
Stop watching files, directories, or glob patterns. Takes an array of strings or just one string.
Constructs a new FSWatcher instance with optional WatchOptions parameter.