Follow Symlink
parent
b9a8b2c30c
commit
315fc7281c
|
@ -8,6 +8,8 @@ const walkDir = async function* (dir = '.', exclude = []) {
|
||||||
|
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
yield* walkDir(join(dir, file.name))
|
yield* walkDir(join(dir, file.name))
|
||||||
|
} else if (file.isSymbolicLink()) {
|
||||||
|
yield* walkDir(join(dir, file.name))
|
||||||
} else {
|
} else {
|
||||||
yield join(dir, file.name)
|
yield join(dir, file.name)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue