From 2d5f38c2bc7257d7fa82a42fb86e97bdde597072 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Mon, 23 May 2016 16:20:13 -0700 Subject: [PATCH] Only return dirs from getdirectories --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 6669a6fca24..0c500d5500e 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -411,7 +411,7 @@ namespace ts { } function getDirectories(path: string): string[] { - return _fs.readdirSync(path); + return filter(_fs.readdirSync(path), p => fileSystemEntryExists(combinePaths(path, p), FileSystemEntryKind.Directory)); } function readDirectory(path: string, extension?: string, exclude?: string[]): string[] {