You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've debugged the library and it seems like the first pattern is considered dynamic which mean its uses the dynamic reader (calling fs.walk) as compared to the static flow which only retrieves the stats instead of a complete Dirent.
Is this difference intended?
I would expect the behavior to be the same, and ideally the static path returns an actualDirent instance
The text was updated successfully, but these errors were encountered:
When using a dynamic vs static pattern and the
objectMode: true
option, different Dirent instances are being returned.In a very basic project (
mkdir test && cd test && npm i fast-glob
), the following code will return two different Dirent isntances.Run with
node index.js
(in v22):I've debugged the library and it seems like the first pattern is considered dynamic which mean its uses the dynamic reader (calling fs.walk) as compared to the static flow which only retrieves the stats instead of a complete Dirent.
Is this difference intended?
I would expect the behavior to be the same, and ideally the static path returns an actual Dirent instance
The text was updated successfully, but these errors were encountered: