Only return dirs from getdirectories
This commit is contained in:
parent
3ee4a2283f
commit
2d5f38c2bc
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ namespace ts {
|
|||
}
|
||||
|
||||
function getDirectories(path: string): string[] {
|
||||
return _fs.readdirSync(path);
|
||||
return filter<string>(_fs.readdirSync(path), p => fileSystemEntryExists(combinePaths(path, p), FileSystemEntryKind.Directory));
|
||||
}
|
||||
|
||||
function readDirectory(path: string, extension?: string, exclude?: string[]): string[] {
|
||||
|
|
Loading…
Reference in a new issue