Skip to content

Commit 7082bd5

Browse files
committed
Fix check
1 parent fc4756c commit 7082bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function* walk(dir: string, onlyFiles: boolean = true): AsyncGenerator<Wal
4444
}
4545

4646
async function directoryExists(path: PathLike): Promise<boolean> {
47-
if (exists(path)) return false;
47+
if (!exists(path)) return false;
4848
const stat = await fs.stat(path);
4949
return stat.isDirectory();
5050
}

0 commit comments

Comments
 (0)