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

Function isDirectory

packages/angular/cli/src/utilities/config.ts:29–37  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

27 await fs.writeFile(path, data);
28 },
29 async isDirectory(path) {
30 try {
31 const stats = await fs.stat(path);
32
33 return stats.isDirectory();
34 } catch {
35 return false;
36 }
37 },
38 async isFile(path) {
39 try {
40 const stats = await fs.stat(path);

Callers

nothing calls this directly

Calls 2

statMethod · 0.65
isDirectoryMethod · 0.65

Tested by

no test coverage detected