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.
Parameters
Section titled “Parameters”scratchDir
Section titled “scratchDir”string
options?
Section titled “options?”ScratchSweepOptions = {}
Returns
Section titled “Returns”Promise<number>
How many build scratch directories were removed.