MCPcopy Index your code
hub / github.com/remotely-save/remotely-save / writeFile

Method writeFile

src/fsLocal.ts:153–164  ·  view source on GitHub ↗
(
    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

Calls 1

statMethod · 0.95

Tested by

no test coverage detected