MCPcopy Index your code
hub / github.com/nodejs/node / getFileSystemEntries

Function getFileSystemEntries

test/fixtures/snapshot/typescript.js:115336–115345  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

115334 }
115335 return host.readDirectory(rootDir, extensions, excludes, includes, depth);
115336 function getFileSystemEntries(dir) {
115337 var path = toPath(dir);
115338 if (path === rootDirPath) {
115339 return rootResult || getFileSystemEntriesFromHost(dir, path);
115340 }
115341 var result = tryReadDirectory(dir, path);
115342 return result !== undefined ?
115343 result || getFileSystemEntriesFromHost(dir, path) :
115344 ts.emptyFileSystemEntries;
115345 }
115346 function getFileSystemEntriesFromHost(dir, path) {
115347 if (rootSymLinkResult && path === rootDirPath)
115348 return rootSymLinkResult;

Callers 1

visitDirectoryFunction · 0.85

Calls 3

toPathFunction · 0.85
tryReadDirectoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…