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

Method write

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

Source from the content-addressed store, hash-verified

67 }
68
69 write(path: Path, content: virtualFs.FileBuffer): Observable<void> {
70 return observableFrom(fsPromises.mkdir(getSystemPath(dirname(path)), { recursive: true })).pipe(
71 mergeMap(() => fsPromises.writeFile(getSystemPath(path), new Uint8Array(content))),
72 );
73 }
74
75 read(path: Path): Observable<virtualFs.FileBuffer> {
76 return observableFrom(fsPromises.readFile(getSystemPath(path))).pipe(

Callers

nothing calls this directly

Calls 4

getSystemPathFunction · 0.90
dirnameFunction · 0.90
mkdirMethod · 0.65
writeFileMethod · 0.65

Tested by

no test coverage detected