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

Method get

packages/angular_devkit/schematics/src/tree/host-tree.ts:342–352  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

340 }
341
342 get(path: string): FileEntry | null {
343 const p = this._normalizePath(path);
344 if (this._recordSync.isDirectory(p)) {
345 throw new PathIsDirectoryException(p);
346 }
347 if (!this._recordSync.exists(p)) {
348 return null;
349 }
350
351 return new LazyFileEntry(p, () => Buffer.from(this._recordSync.read(p)));
352 }
353
354 getDir(path: string): DirEntry {
355 const p = this._normalizePath(path);

Callers 3

readMethod · 0.95
beginUpdateMethod · 0.95
commitUpdateMethod · 0.95

Calls 5

_normalizePathMethod · 0.95
fromMethod · 0.80
isDirectoryMethod · 0.65
existsMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected