From b1f9020f01d9f7a97a890997f6f8af43855e8092 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Sun, 5 Jan 2025 21:22:52 +0900 Subject: [PATCH 1/2] fs: allow `exclude` option in globs to accept glob patterns Signed-off-by: Daeyeon Jeong --- doc/api/fs.md | 18 +++- lib/internal/fs/glob.js | 151 ++++++++++++++++++++++++++------- test/parallel/test-fs-glob.mjs | 94 ++++++++++++++++++++ 3 files changed, 227 insertions(+), 36 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 4fafdc453b0603..d61b7c08c9597f 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1074,6 +1074,9 @@ behavior is similar to `cp dir1/ dir2/`.