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

Method getDirectories

packages/compiler-cli/test/mocks.ts:74–81  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

72 }
73
74 getDirectories(path: string): string[] {
75 const dir = this.getEntry(path);
76 if (typeof dir !== 'object') {
77 return [];
78 } else {
79 return Object.keys(dir).filter((key) => typeof dir[key] === 'object');
80 }
81 }
82
83 override(files: Entry) {
84 return new MockAotContext(this.currentDirectory, files, ...this.files);

Callers 1

getDirectoriesMethod · 0.45

Calls 3

getEntryMethod · 0.95
keysMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected