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

Function cleanupPageAttachmentFiles

src/main/attachmentStorage.ts:153–156  ·  view source on GitHub ↗
(pageId: string)

Source from the content-addressed store, hash-verified

151}
152
153export async function cleanupPageAttachmentFiles(pageId: string): Promise<void> {
154 const targetDir = resolveDirectoryWithinAttachmentsRoot(pageId)
155 await rm(targetDir, { recursive: true, force: true })
156}
157
158export async function cleanupTempAttachmentFiles(): Promise<void> {
159 const targetDir = resolveDirectoryWithinAttachmentsRoot('temp')

Callers 1

Tested by

no test coverage detected