MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getFileSize

Function getFileSize

sdk/src/run-state.ts:228–230  ·  view source on GitHub ↗
(stats: Awaited<ReturnType<CodebuffFileSystem['stat']>>)

Source from the content-addressed store, hash-verified

226}
227
228function getFileSize(stats: Awaited<ReturnType<CodebuffFileSystem['stat']>>) {
229 return typeof stats.size === 'number' ? stats.size : 0
230}
231
232/**
233 * Helper to convert ChildProcess to Promise with stdout/stderr

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected