MCPcopy
hub / github.com/Eugeny/tabby / loadFile

Method loadFile

tabby-terminal/src/features/debug.ts:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 private async loadFile (): Promise<string|null> {
68 const transfer = await this.platform.startUpload()
69 if (!transfer.length) {
70 return null
71 }
72 const data = await transfer[0].readAll()
73 transfer[0].close()
74 return data.toString()
75 }
76
77 private async saveFile (content: string, name: string) {
78 const data = Buffer.from(content)

Callers 3

doLoadStateMethod · 0.95
doLoadOutputMethod · 0.95
constructorMethod · 0.80

Calls 3

toStringMethod · 0.80
startUploadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected