MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / write

Method write

packages/filesystem/webdav/rw.ts:40–46  ·  view source on GitHub ↗
(content: string | Blob)

Source from the content-addressed store, hash-verified

38 }
39
40 async write(content: string | Blob): Promise<void> {
41 const data = content instanceof Blob ? await content.arrayBuffer() : content;
42 const resp = await this.client.putFileContents(this.path, data);
43 if (!resp) {
44 throw new Error("write error");
45 }
46 }
47}

Callers

nothing calls this directly

Calls 1

arrayBufferMethod · 0.45

Tested by

no test coverage detected