node/lib/internal/fs
Rich Trott 5006627969
fs: apply exclude function to root path
In at least some situations, the root path was
being added to the results of globbing even if
it matched the optional exclude function.

In the relevant test file, a variable was renamed
for consistency. (There was a patterns and pattern2,
rather than patterns2.) The test case is added to
patterns2.

Fixes: https://github.com/nodejs/node/issues/56260
PR-URL: https://github.com/nodejs/node/pull/57420
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: James M Snell <jasnell@gmail.com>
2025-03-18 11:16:12 +01:00
..
cp
read
dir.js
glob.js fs: apply exclude function to root path 2025-03-18 11:16:12 +01:00
promises.js fs: make FileHandle.readableWebStream always create byte streams 2025-02-10 15:16:06 +01:00
recursive_watch.js lib: fixup more incorrect ERR_INVALID_ARG_VALUE uses 2025-02-25 17:51:07 +01:00
rimraf.js
streams.js
sync_write_stream.js
utils.js lib: fixup incorrect argument order in assertEncoding 2025-02-25 17:51:07 +01:00
watchers.js lib: fixup more incorrect ERR_INVALID_ARG_VALUE uses 2025-02-25 17:51:07 +01:00