fs: allow 'withFileTypes' to be used with globs
Fixes #52752 (closed)
This PR enables the usage of withFileTypes
in fs.glob
(and similar) functions.
When withFileTypes
is provided, the exclude()
function will receive Dirent
objects as arguments, along with the return value and callbacks.