Method
writeFile
(
key: string,
content: ArrayBuffer,
mtime: number,
ctime: number
)
Source from the content-addressed store, hash-verified
| 151 | } |
| 152 | |
| 153 | async writeFile( |
| 154 | key: string, |
| 155 | content: ArrayBuffer, |
| 156 | mtime: number, |
| 157 | ctime: number |
| 158 | ): Promise<Entity> { |
| 159 | await this.vault.adapter.writeBinary(key, content, { |
| 160 | mtime: mtime, |
| 161 | ctime: ctime, |
| 162 | }); |
| 163 | return await this.stat(key); |
| 164 | } |
| 165 | |
| 166 | async readFile(key: string): Promise<ArrayBuffer> { |
| 167 | return await this.vault.adapter.readBinary(key); |
Callers
nothing calls this directly
Tested by
no test coverage detected