MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / write

Method write

packages/filesystem/googledrive/rw.ts:54–64  ·  view source on GitHub ↗
(content: string | Blob)

Source from the content-addressed store, hash-verified

52 }
53
54 async write(content: string | Blob): Promise<void> {
55 try {
56 return await this.writeWithResolvedParent(content);
57 } catch (error) {
58 if (!isNotFoundError(error)) {
59 throw error;
60 }
61 this.fs.clearPathCache();
62 return await this.writeWithResolvedParent(content);
63 }
64 }
65
66 private async writeWithResolvedParent(content: string | Blob): Promise<void> {
67 // 解析文件路径和文件名

Callers

nothing calls this directly

Calls 3

isNotFoundErrorFunction · 0.90
clearPathCacheMethod · 0.80

Tested by

no test coverage detected