Skip to content

Conversation

@Sn1perdog
Copy link

We CANNOT move to node's built-in globbing mechanism, this PR is to show this, and can potentially be used later to build upon.
The node:fs.glob function does not traverse symbolic links that point to directories. It does not expose an option to enable traversal of directory symlinks, unlike the behavior found in the existing globbing libraries.

I have raised a feature request with the node team for this: nodejs/node#61033
Relevant node globbing file: https://github.com/nodejs/node/blob/main/lib/internal/fs/glob.js

Failing tests:

✖ should follow symbolic link without wildcard (12.977115ms)
✖ should serve files into hidden dir with wildcard `false` (7.238363ms)

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant