Constructor
new FsWatcher(path, recursive) → {FsWatcher}
Creates a new FsWatcher instance.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
path |
String
|
The path to be monitored for changes. |
|
recursive |
Boolean
|
false |
The watcher will monitor changes in the directory and its subdirectories. |
Returns:
- Type:
-
FsWatcher
An instance to monitor file or directory changes.