MCPcopy Index your code
hub / github.com/heygen-com/hyperframes / cleanupDir

Function cleanupDir

packages/aws-lambda/src/handler.ts:527–535  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

525}
526
527function cleanupDir(dir: string): void {
528 try {
529 // Lambda warm starts can reuse `/tmp` across invocations; clean up
530 // aggressively so we don't leak a chunk-sized footprint between renders.
531 rmSync(dir, { recursive: true, force: true });
532 } catch {
533 // Best-effort — leak is preferable to crashing on success path.
534 }
535}
536
537/**
538 * Read the untarred planDir's `plan.json` and assert its `planHash`

Callers 3

handlePlanFunction · 0.70
handleRenderChunkFunction · 0.70
handleAssembleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected