MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / cleanup

Function cleanup

server.js:1063–1069  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1061function startExportJob(job, args, expectedSeconds) {
1062 let cleanedUp = false;
1063 const cleanup = () => {
1064 if (cleanedUp) return;
1065 cleanedUp = true;
1066 for (const file of job.tempFiles || []) {
1067 fsp.unlink(file).catch(() => {});
1068 }
1069 };
1070 const child = spawn(FFMPEG, args, {
1071 cwd: ROOT,
1072 windowsHide: true,

Callers 1

startExportJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected