MCPcopy Create free account
hub / github.com/experdot/pointer / cleanupTempAttachments

Method cleanupTempAttachments

src/main/attachmentHandler.ts:162–173  ·  view source on GitHub ↗

* 清理临时目录中的所有文件

()

Source from the content-addressed store, hash-verified

160 * 清理临时目录中的所有文件
161 */
162 async cleanupTempAttachments(): Promise<{ success: boolean; error?: string }> {
163 try {
164 await cleanupTempAttachmentFiles()
165 return { success: true }
166 } catch (error) {
167 console.error('清理临时附件失败:', error)
168 return {
169 success: false,
170 error: error instanceof Error ? error.message : '清理临时附件失败'
171 }
172 }
173 }
174}
175
176// 创建全局实例

Callers 1

setupAttachmentHandlersFunction · 0.80

Calls 1

Tested by

no test coverage detected