MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getTaskOutputSize

Function getTaskOutputSize

source code/utils/task/diskOutput.ts:364–375  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

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