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

Method write

packages/angular_devkit/core/node/host.ts:162–169  ·  view source on GitHub ↗
(path: Path, content: virtualFs.FileBuffer)

Source from the content-addressed store, hash-verified

160 }
161
162 write(path: Path, content: virtualFs.FileBuffer): Observable<void> {
163 return new Observable((obs) => {
164 mkdirSync(getSystemPath(dirname(path)), { recursive: true });
165 writeFileSync(getSystemPath(path), new Uint8Array(content));
166 obs.next();
167 obs.complete();
168 });
169 }
170
171 read(path: Path): Observable<virtualFs.FileBuffer> {
172 return new Observable((obs) => {

Callers

nothing calls this directly

Calls 4

getSystemPathFunction · 0.90
dirnameFunction · 0.90
nextMethod · 0.80
completeMethod · 0.80

Tested by

no test coverage detected