Skip to content

fs: add dot option to glob#63205

Open
owlstronaut wants to merge 1 commit intonodejs:mainfrom
owlstronaut:owlstronaut/fs-glob-dot-option
Open

fs: add dot option to glob#63205
owlstronaut wants to merge 1 commit intonodejs:mainfrom
owlstronaut:owlstronaut/fs-glob-dot-option

Conversation

@owlstronaut
Copy link
Copy Markdown

@owlstronaut owlstronaut commented May 8, 2026

Adds an opt-in dot boolean option to fs.glob(), fs.globSync(), and fsPromises.glob(). When true, * and ** patterns match basenames starting with ., and the walker descends into directories whose names start
with .. Defaults to false to preserve current behavior.

Followed up from #56321 (comment)

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels May 8, 2026
Adds an opt-in `dot` boolean option to fs.glob, fs.globSync, and fsPromises.glob. When true, `*` and `**` patterns match basenames that begin with `.`, and the walker descends into directories
 whose names begin with `.`. Defaults to false to preserve current behavior.

Signed-off-by: Michael Smith <owlstronaut@github.com>
@owlstronaut owlstronaut force-pushed the owlstronaut/fs-glob-dot-option branch from c2482d4 to 965b503 Compare May 8, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants