node/lib/internal/fs
Matteo Collina e91b296001
fs: add ignore option to fs.watch
Add an `ignore` option to `fs.watch()` to filter filesystem events.
Supports string globs, RegExp, functions, or arrays of these.

PR-URL: https://github.com/nodejs/node/pull/61433
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2026-01-25 00:07:50 +01:00
..
cp fs: fix errorOnExist behavior for directory copy in fs.cp 2026-01-20 14:36:02 +01:00
read lib: prefer call() over apply() if argument list is not array 2026-01-13 10:04:20 -03:00
dir.js fs: close dir before throwing if options.bufferSize is invalid 2025-07-06 05:32:45 +00:00
glob.js fs: fix ENOTDIR in globSync when file is treated as dir 2026-01-20 14:36:01 +01:00
promises.js fs: validate statfs path 2026-01-14 17:21:26 -03:00
recursive_watch.js fs: add ignore option to fs.watch 2026-01-25 00:07:50 +01:00
rimraf.js
streams.js lib: prefer call() over apply() if argument list is not array 2026-01-13 10:04:20 -03:00
sync_write_stream.js lib: prefer call() over apply() if argument list is not array 2026-01-13 10:04:20 -03:00
utils.js lib: prefer call() over apply() if argument list is not array 2026-01-13 10:04:20 -03:00
watchers.js fs: add ignore option to fs.watch 2026-01-25 00:07:50 +01:00