Class: FSWatcher

FSWatcher


new FSWatcher()

Objects returned from watch() are of this type. Identical to fs.FSWatcher.
Source:
fs.js#L75
Fires:

Methods


close()

Closes the FSWatcher instance
Source:
fs.js#L100

Events


change

Emitted when an error occurs.
Type: fsn/fs.FSWatcher
Properties:
Name Type Description
eventType string The type of fs change
filename string | Buffer The filename that changed
Source:
fs.js#L83

error

Emitted when an error occurs.
Type: fsn/fs.FSWatcher
Properties:
Name Type Description
error Error The error
Source:
fs.js#L92