* Watches a file or directory for changes. * @param {string} path The path to watch * @param {object} [options] Watch options * @returns {VFSWatcher}
(path, options)
| 950 | * @returns {VFSWatcher} |
| 951 | */ |
| 952 | watch(path, options) { |
| 953 | const normalized = this.#normalizePath(path); |
| 954 | return new VFSWatcher(this, normalized, options); |
| 955 | } |
| 956 | |
| 957 | /** |
| 958 | * Watches a file or directory for changes (async iterable version). |
nothing calls this directly
no test coverage detected