Follow Symlink

master
Frédéric Matte 2023-09-30 05:00:31 -04:00
parent b9a8b2c30c
commit 315fc7281c
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}