MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getImagePath

Function getImagePath

src/utils/imageStore.ts:33–36  ·  view source on GitHub ↗

* Get the file path for an image by ID.

(imageId: number, mediaType: string)

Source from the content-addressed store, hash-verified

31 * Get the file path for an image by ID.
32 */
33function getImagePath(imageId: number, mediaType: string): string {
34 const extension = mediaType.split('/')[1] || 'png'
35 return join(getImageStoreDir(), `${imageId}.${extension}`)
36}
37
38/**
39 * Cache the image path immediately (fast, no file I/O).

Callers 2

cacheImagePathFunction · 0.85
storeImageFunction · 0.85

Calls 1

getImageStoreDirFunction · 0.85

Tested by

no test coverage detected