MCPcopy Create free account
hub / github.com/angular/angular / writeFile

Function writeFile

packages/core/schematics/utils/project_tsconfig_paths.ts:103–105  ·  view source on GitHub ↗
(path: string, data: string)

Source from the content-addressed store, hash-verified

101 return virtualFs.fileBufferToString(data);
102 },
103 async writeFile(path: string, data: string): Promise<void> {
104 return tree.overwrite(path, data);
105 },
106 async isDirectory(path: string): Promise<boolean> {
107 // Approximate a directory check.
108 // We don't need to consider empty directories and hence this is a good enough approach.

Callers

nothing calls this directly

Calls 1

overwriteMethod · 0.80

Tested by

no test coverage detected