fs.FSWatcher 类


成功调用 fs.watch() 方法将返回一个新的 fs.FSWatcher 对象。

所有 fs.FSWatcher 对象都是 EventEmitter 的实例,只要修改了指定监视的文件,就会触发 'change' 事件。

A successful call to fs.watch() method will return a new fs.FSWatcher object.

All fs.FSWatcher objects are EventEmitter's that will emit a 'change' event whenever a specific watched file is modified.