MCPcopy Index your code
hub / github.com/angular/angular / directoryExists

Function directoryExists

packages/compiler-cli/src/ngtsc/resource/src/loader.ts:265–275  ·  view source on GitHub ↗
(directoryName: string)

Source from the content-addressed store, hash-verified

263): RequiredDelegations<ts.ModuleResolutionHost> {
264 return {
265 directoryExists(directoryName: string): boolean {
266 if (directoryName.includes(RESOURCE_MARKER)) {
267 return false;
268 } else if (adapter.directoryExists !== undefined) {
269 return adapter.directoryExists(directoryName);
270 } else {
271 // TypeScript's module resolution logic assumes that the directory exists when no host
272 // implementation is available.
273 return true;
274 }
275 },
276 fileExists(fileName: string): boolean {
277 if (fileName.includes(RESOURCE_MARKER)) {
278 return false;

Callers

nothing calls this directly

Calls 1

directoryExistsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…