fastify-static icon indicating copy to clipboard operation
fastify-static copied to clipboard

feat: use node's built-in globbing tool

Open Sn1perdog opened this issue 2 weeks ago • 0 comments

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: https://github.com/nodejs/node/issues/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

Sn1perdog avatar Dec 12 '25 13:12 Sn1perdog