Skip to content

sweepOrphanedScratch

sweepOrphanedScratch(scratchDir, options?): Promise<number>

Defined in: packages/core/src/capture/scratch.ts:132

Boot-time sweep for scratch dirs a crash left behind. Age-gated rather than wholesale so a second process sharing the same scratchDir (server plus worker) keeps its live captures.

string

ScratchSweepOptions = {}

Promise<number>

How many build scratch directories were removed.