MCPcopy Create free account
hub / github.com/callstack/agent-device / cleanupResumableUpload

Function cleanupResumableUpload

src/daemon/resumable-upload.ts:190–197  ·  view source on GitHub ↗
(uploadId: string)

Source from the content-addressed store, hash-verified

188}
189
190function cleanupResumableUpload(uploadId: string): void {
191 const entry = RESUMABLE_UPLOADS_BY_ID.get(uploadId);
192 if (!entry) return;
193 clearTimeout(entry.timer);
194 RESUMABLE_UPLOADS_BY_ID.delete(uploadId);
195 RESUMABLE_UPLOADS_BY_KEY.delete(entry.key);
196 fs.rmSync(entry.tempDir, { recursive: true, force: true });
197}
198
199function requireResumableUpload(
200 uploadId: string,

Callers 3

finalizeResumableUploadFunction · 0.85

Calls 2

getMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…