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