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

Function cleanupTempAttachmentFiles

src/main/attachmentStorage.ts:158–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156}
157
158export async function cleanupTempAttachmentFiles(): Promise<void> {
159 const targetDir = resolveDirectoryWithinAttachmentsRoot('temp')
160 await rm(targetDir, { recursive: true, force: true })
161 await mkdir(targetDir, { recursive: true })
162}
163
164export async function resolveAttachmentPathForAI(localPath: string): Promise<string> {
165 const targetPath = await resolveAttachmentPath(localPath)

Callers 1

Tested by

no test coverage detected