Skip to content

Commit 2d5f38c

Browse files
committed
Only return dirs from getdirectories
1 parent 3ee4a22 commit 2d5f38c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ namespace ts {
411411
}
412412

413413
function getDirectories(path: string): string[] {
414-
return _fs.readdirSync(path);
414+
return filter<string>(_fs.readdirSync(path), p => fileSystemEntryExists(combinePaths(path, p), FileSystemEntryKind.Directory));
415415
}
416416

417417
function readDirectory(path: string, extension?: string, exclude?: string[]): string[] {

0 commit comments

Comments
 (0)