( pageId: string, messageId: string )
| 143 | } |
| 144 | |
| 145 | export async function cleanupMessageAttachmentFiles( |
| 146 | pageId: string, |
| 147 | messageId: string |
| 148 | ): Promise<void> { |
| 149 | const targetDir = resolveDirectoryWithinAttachmentsRoot(pageId, messageId) |
| 150 | await rm(targetDir, { recursive: true, force: true }) |
| 151 | } |
| 152 | |
| 153 | export async function cleanupPageAttachmentFiles(pageId: string): Promise<void> { |
| 154 | const targetDir = resolveDirectoryWithinAttachmentsRoot(pageId) |
no test coverage detected