* Ensure the image store directory exists.
()
| 23 | * Ensure the image store directory exists. |
| 24 | */ |
| 25 | async function ensureImageStoreDir(): Promise<void> { |
| 26 | const dir = getImageStoreDir() |
| 27 | await mkdir(dir, { recursive: true }) |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Get the file path for an image by ID. |
no test coverage detected