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 ec8eeff commit d0545ffCopy full SHA for d0545ff
src/compiler/sys.ts
@@ -495,7 +495,9 @@ namespace ts {
495
visitDirectory(path);
496
return result;
497
function visitDirectory(path: string) {
498
- const files = _fs.readdirSync(path || ".").sort();
+ // This filtering is necessary because on some file system node fails to exclude
499
+ // "." and "..". See https://github.com/nodejs/node/issues/4002
500
+ const files = filter(<string[]>_fs.readdirSync(path || "."), f => f !== "." && f !== "..").sort();
501
const directories: string[] = [];
502
for (const current of files) {
503
const name = combinePaths(path, current);
0 commit comments