MCPcopy Index your code
hub / github.com/nodejs/node / watchFile

Method watchFile

lib/internal/vfs/provider.js:602–604  ·  view source on GitHub ↗

* Watches a file for changes using stat polling. * Returns a StatWatcher-like object that emits 'change' events with stats. * @param {string} path The path to watch * @param {object} [options] Watch options * @param {number} [options.interval] Polling interval in ms (default: 5007) *

(path, options)

Source from the content-addressed store, hash-verified

600 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not overridden by subclass
601 */
602 watchFile(path, options) {
603 throw new ERR_METHOD_NOT_IMPLEMENTED('watchFile');
604 }
605
606 /**
607 * Stops watching a file for changes.

Calls

no outgoing calls

Tested by

no test coverage detected