MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTaskOutputSize

Function getTaskOutputSize

src/utils/task/diskOutput.ts:362–373  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

360 * Get the current size (offset) of a task's output file.
361 */
362export async function getTaskOutputSize(taskId: string): Promise<number> {
363 try {
364 return (await stat(getTaskOutputPath(taskId))).size
365 } catch (e) {
366 const code = getErrnoCode(e)
367 if (code === 'ENOENT') {
368 return 0
369 }
370 logError(e)
371 return 0
372 }
373}
374
375/**
376 * Clean up a task's output file and write queue.

Callers

nothing calls this directly

Calls 4

statFunction · 0.85
getTaskOutputPathFunction · 0.85
getErrnoCodeFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected