(targetPath: string)
| 15 | } |
| 16 | |
| 17 | async function pathExists(targetPath: string): Promise<boolean> { |
| 18 | try { |
| 19 | await stat(targetPath) |
| 20 | return true |
| 21 | } catch { |
| 22 | return false |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | async function ensureAttachmentsRoot(): Promise<string> { |
| 27 | const attachmentsRoot = getCurrentAttachmentsDirectory() |
no outgoing calls
no test coverage detected