From dc5d0f9bb4d017c4a4c7e61653da932df8fd9d93 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Thu, 9 Jan 2025 08:12:27 +0900 Subject: [PATCH] fs: allow `exclude` option in globs to accept glob patterns Signed-off-by: Daeyeon Jeong PR-URL: https://github.com/nodejs/node/pull/56489 Reviewed-By: James M Snell Reviewed-By: Chemi Atlow Reviewed-By: Moshe Atlow Reviewed-By: Jason Zhang --- 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/`.