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

Function tryFileExists

test/fixtures/snapshot/typescript.js:129127–129129  ·  view source on GitHub ↗
(host, path)

Source from the content-addressed store, hash-verified

129125 }
129126 ts.tryReadDirectory = tryReadDirectory;
129127 function tryFileExists(host, path) {
129128 return tryIOAndConsumeErrors(host, host.fileExists, path);
129129 }
129130 ts.tryFileExists = tryFileExists;
129131 function tryDirectoryExists(host, path) {
129132 return tryAndIgnoreErrors(function () { return ts.directoryProbablyExists(path, host); }) || false;

Callers 2

findPackageJsonsFunction · 0.85
findPackageJsonFunction · 0.85

Calls 1

tryIOAndConsumeErrorsFunction · 0.85

Tested by

no test coverage detected