MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getImagePath

Function getImagePath

source code/utils/imageStore.ts:35–38  ·  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

33 * Get the file path for an image by ID.
34 */
35function getImagePath(imageId: number, mediaType: string): string {
36 const extension = mediaType.split('/')[1] || 'png'
37 return join(getImageStoreDir(), `${imageId}.${extension}`)
38}
39
40/**
41 * 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