MCPcopy Index your code
hub / github.com/angular/angular-cli / exists

Method exists

packages/angular_devkit/core/node/host.ts:206–211  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

204 }
205
206 exists(path: Path): Observable<boolean> {
207 return new Observable((obs) => {
208 obs.next(existsSync(getSystemPath(path)));
209 obs.complete();
210 });
211 }
212
213 isDirectory(path: Path): Observable<boolean> {
214 return this.stat(path).pipe(map((stat) => stat.isDirectory()));

Callers

nothing calls this directly

Calls 4

getSystemPathFunction · 0.90
existsSyncFunction · 0.85
nextMethod · 0.80
completeMethod · 0.80

Tested by

no test coverage detected