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.
2 parents 55cbdc9 + ddbfb7b commit 6cc1b17Copy full SHA for 6cc1b17
src/compiler/sys.ts
@@ -498,6 +498,11 @@ namespace ts {
498
const files = _fs.readdirSync(path || ".").sort();
499
const directories: string[] = [];
500
for (const current of files) {
501
+ // This is necessary because on some file system node fails to exclude
502
+ // "." and "..". See https://github.com/nodejs/node/issues/4002
503
+ if (current === "." || current === "..") {
504
+ continue;
505
+ }
506
const name = combinePaths(path, current);
507
if (!contains(exclude, getCanonicalPath(name))) {
508
const stat = _fs.statSync(name);
0 commit comments