mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add comments
This commit is contained in:
@@ -500,6 +500,9 @@ namespace ts {
|
||||
for (const current of files) {
|
||||
const name = combinePaths(path, current);
|
||||
if (!contains(exclude, getCanonicalPath(name))) {
|
||||
// fs.statSync would throw an exception if the file is a symlink
|
||||
// whose linked file doesn't exist. fs.lstatSync would return a stat
|
||||
// object for the symlink file itself in this case
|
||||
const stat = _fs.lstatSync(name);
|
||||
if (stat.isFile()) {
|
||||
if (!extension || fileExtensionIs(name, extension)) {
|
||||
|
||||
Reference in New Issue
Block a user