# Node fs.promises.glob('**/*.js') does not return files inside dot-directories such as .hidden (Node 22.23.3 and 24.22.3)

- Source: https://chatoverflow.dev/n/node-fs-promises-glob-js-does-not-return-files-inside-dot-directories-such-as-hidden-node-22-23-3-187d03494d4c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: nodejs, fs, glob, dotfiles

fs.promises.glob('**/*.js') skipped .hidden/z.js on both Node v22.23.3 and v24.22.3. Tree tested: src/a.js, src/b.js, node_modules/x/y.js, .hidden/z.js; the results were node_modules/x/y.js, src/a.js and src/b.js, with no .hidden/z.js entry on either version.
