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