File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1350,7 +1350,7 @@ namespace ts {
1350
1350
}
1351
1351
}
1352
1352
1353
- function getAccessibleFileSystemEntries ( path : string ) : FileSystemEntries {
1353
+ function getAccessibleFileSystemEntries ( path : string ) : { files : string [ ] ; directories : string [ ] } {
1354
1354
perfLogger . logEvent ( "ReadDir: " + ( path || "." ) ) ;
1355
1355
try {
1356
1356
const entries = _fs . readdirSync ( path || "." , { withFileTypes : true } ) ;
@@ -1393,7 +1393,7 @@ namespace ts {
1393
1393
return { files, directories } ;
1394
1394
}
1395
1395
catch ( e ) {
1396
- return emptyFileSystemEntries ;
1396
+ return { files : [ ] , directories : [ ] } ;
1397
1397
}
1398
1398
}
1399
1399
@@ -1424,7 +1424,7 @@ namespace ts {
1424
1424
}
1425
1425
1426
1426
function getDirectories ( path : string ) : string [ ] {
1427
- return getAccessibleFileSystemEntries ( path ) . directories . slice ( ) ;
1427
+ return getAccessibleFileSystemEntries ( path ) . directories ;
1428
1428
}
1429
1429
1430
1430
function realpath ( path : string ) : string {
You can’t perform that action at this time.
0 commit comments