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

Function deleteAttachmentFile

src/main/attachmentStorage.ts:110–117  ·  view source on GitHub ↗
(localPath: string)

Source from the content-addressed store, hash-verified

108}
109
110export async function deleteAttachmentFile(localPath: string): Promise<void> {
111 const targetPath = await resolveAttachmentPath(localPath)
112 if (!(await pathExists(targetPath))) {
113 return
114 }
115
116 await unlink(targetPath)
117}
118
119export async function moveAttachmentFile(options: {
120 fileId: string

Callers 1

deleteAttachmentMethod · 0.90

Calls 2

resolveAttachmentPathFunction · 0.85
pathExistsFunction · 0.70

Tested by

no test coverage detected