File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1614,7 +1614,7 @@ namespace ts {
1614
1614
}
1615
1615
}
1616
1616
1617
- function getAccessibleFileSystemEntries ( path : string ) : FileSystemEntries {
1617
+ function getAccessibleFileSystemEntries ( path : string ) : { files : string [ ] ; directories : string [ ] } {
1618
1618
perfLogger . logEvent ( "ReadDir: " + ( path || "." ) ) ;
1619
1619
try {
1620
1620
const entries = _fs . readdirSync ( path || "." , { withFileTypes : true } ) ;
@@ -1657,7 +1657,7 @@ namespace ts {
1657
1657
return { files, directories } ;
1658
1658
}
1659
1659
catch ( e ) {
1660
- return emptyFileSystemEntries ;
1660
+ return { files : [ ] , directories : [ ] } ;
1661
1661
}
1662
1662
}
1663
1663
@@ -1688,7 +1688,7 @@ namespace ts {
1688
1688
}
1689
1689
1690
1690
function getDirectories ( path : string ) : string [ ] {
1691
- return getAccessibleFileSystemEntries ( path ) . directories . slice ( ) ;
1691
+ return getAccessibleFileSystemEntries ( path ) . directories ;
1692
1692
}
1693
1693
1694
1694
function realpath ( path : string ) : string {
You can’t perform that action at this time.
0 commit comments