(localPath: string)
| 102 | } |
| 103 | |
| 104 | export 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 | |
| 110 | export async function deleteAttachmentFile(localPath: string): Promise<void> { |
| 111 | const targetPath = await resolveAttachmentPath(localPath) |
no test coverage detected