MCPcopy
hub / github.com/codeaashu/claude-code / ensureImageStoreDir

Function ensureImageStoreDir

src/utils/imageStore.ts:25–28  ·  view source on GitHub ↗

* Ensure the image store directory exists.

()

Source from the content-addressed store, hash-verified

23 * Ensure the image store directory exists.
24 */
25async 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.

Callers 1

storeImageFunction · 0.85

Calls 2

getImageStoreDirFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected