Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit d33839c

Browse files
committed
fix: decrypt all file
1 parent fac3ded commit d33839c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/utils.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ export async function travesDir(
3131

3232
const excluded = await isExclude?.(uri);
3333

34-
if (!excluded) {
35-
tasks.push(cb(uri, fileType));
34+
if (excluded) {
35+
continue;
3636
}
3737

38-
if (!excluded && fileType === FileType.Directory) {
39-
travesDir(uri, cb, isExclude);
38+
if (fileType === FileType.Directory) {
39+
await travesDir(uri, cb, isExclude);
40+
} else {
41+
tasks.push(cb(uri, fileType));
4042
}
4143
}
4244

0 commit comments

Comments
 (0)