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

Function getFileSystemEntriesFromHost

test/fixtures/snapshot/typescript.js:115346–115356  ·  view source on GitHub ↗
(dir, path)

Source from the content-addressed store, hash-verified

115344 ts.emptyFileSystemEntries;
115345 }
115346 function getFileSystemEntriesFromHost(dir, path) {
115347 if (rootSymLinkResult && path === rootDirPath)
115348 return rootSymLinkResult;
115349 var result = {
115350 files: ts.map(host.readDirectory(dir, /*extensions*/ undefined, /*exclude*/ undefined, /*include*/ ["*.*"]), getBaseNameOfFileName) || ts.emptyArray,
115351 directories: host.getDirectories(dir) || ts.emptyArray
115352 };
115353 if (path === rootDirPath)
115354 rootSymLinkResult = result;
115355 return result;
115356 }
115357 }
115358 function realpath(s) {
115359 return host.realpath ? host.realpath(s) : s;

Callers 1

getFileSystemEntriesFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…