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

Function readAttachmentFile

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

Source from the content-addressed store, hash-verified

102}
103
104export async function readAttachmentFile(localPath: string): Promise<string> {
105 const targetPath = await resolveAttachmentPath(localPath)
106 const buffer = await readFile(targetPath)
107 return buffer.toString('base64')
108}
109
110export async function deleteAttachmentFile(localPath: string): Promise<void> {
111 const targetPath = await resolveAttachmentPath(localPath)

Callers 1

readAttachmentMethod · 0.90

Calls 1

resolveAttachmentPathFunction · 0.85

Tested by

no test coverage detected