We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4756c commit 7082bd5Copy full SHA for 7082bd5
src/main.ts
@@ -44,7 +44,7 @@ async function* walk(dir: string, onlyFiles: boolean = true): AsyncGenerator<Wal
44
}
45
46
async function directoryExists(path: PathLike): Promise<boolean> {
47
- if (exists(path)) return false;
+ if (!exists(path)) return false;
48
const stat = await fs.stat(path);
49
return stat.isDirectory();
50
0 commit comments