MCPcopy Index your code
hub / github.com/cursor/community-plugins / cleanup

Function cleanup

apps/cursor/src/lib/plugins/scan.ts:364–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362 const cwd = path.join(root, "repo");
363 const archivePath = path.join(root, "repo.tar.gz");
364 const cleanup = () =>
365 rm(root, { recursive: true, force: true }).catch(() => {});
366 const startedAt = Date.now();
367 const archiveUrl = `https://api.github.com/repos/${owner}/${repo}/tarball/HEAD`;
368 logInfo(tag, "GitHub archive download start", { owner, repo, cwd });

Callers 2

cloneRepoFunction · 0.85
runSecurityAgentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected