MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / readBytes

Method readBytes

packages/kaos/src/ssh.ts:709–713  ·  view source on GitHub ↗
(path: string, n?: number)

Source from the content-addressed store, hash-verified

707 // ── File operations (async) ────────────────────────────────────────
708
709 async readBytes(path: string, n?: number): Promise<Buffer> {
710 const data = await sftpReadFile(this._sftp, this._resolvePath(path));
711 if (n === undefined) return data;
712 return data.subarray(0, n);
713 }
714
715 async readText(
716 path: string,

Callers

nothing calls this directly

Calls 2

_resolvePathMethod · 0.95
sftpReadFileFunction · 0.85

Tested by

no test coverage detected