Function
writeFile
(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
Tested by
no test coverage detected