MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / cleanup

Method cleanup

src/utils/template-manager.ts:139–147  ·  view source on GitHub ↗

* Clean up downloaded template directory

(
    templatePath: string,
    fileSystemExecutor: FileSystemExecutor,
  )

Source from the content-addressed store, hash-verified

137 * Clean up downloaded template directory
138 */
139 static async cleanup(
140 templatePath: string,
141 fileSystemExecutor: FileSystemExecutor,
142 ): Promise<void> {
143 // Only clean up if it's in temp directory
144 if (templatePath.startsWith(tmpdir())) {
145 await fileSystemExecutor.rm(templatePath, { recursive: true, force: true });
146 }
147 }
148}

Callers 1

downloadTemplateMethod · 0.95

Calls 2

tmpdirFunction · 0.85
rmMethod · 0.80

Tested by

no test coverage detected