(path: Path, content: virtualFs.FileBuffer)
| 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( |
nothing calls this directly
no test coverage detected