From 315fc7281c42f74477bb9f820fd828afbf12cc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Sat, 30 Sep 2023 05:00:31 -0400 Subject: [PATCH] Follow Symlink --- lib/suite.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/suite.js b/lib/suite.js index e2ceb28..7d6b701 100644 --- a/lib/suite.js +++ b/lib/suite.js @@ -8,6 +8,8 @@ const walkDir = async function* (dir = '.', exclude = []) { if (file.isDirectory()) { yield* walkDir(join(dir, file.name)) + } else if (file.isSymbolicLink()) { + yield* walkDir(join(dir, file.name)) } else { yield join(dir, file.name) }