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

Method write

tabby-ssh/src/session/sftp.ts:32–37  ·  view source on GitHub ↗
(chunk: Uint8Array)

Source from the content-addressed store, hash-verified

30 }
31
32 async write (chunk: Uint8Array): Promise<void> {
33 if (!this.inner) {
34 throw new Error('File handle is closed')
35 }
36 await this.inner.writeAll(chunk)
37 }
38
39 async close (): Promise<void> {
40 await this.inner?.shutdown()

Callers 8

setupOneSessionMethod · 0.45
onSessionDestroyedMethod · 0.45
initializeSessionMethod · 0.45
uploadMethod · 0.45
downloadMethod · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected