MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getCacheDirectoryPath

Function getCacheDirectoryPath

src/utils/storage.ts:73–78  ·  view source on GitHub ↗
(globalStoragePath: string)

Source from the content-addressed store, hash-verified

71 * Gets the cache directory path
72 */
73export async function getCacheDirectoryPath(globalStoragePath: string): Promise<string> {
74 const basePath = await getStorageBasePath(globalStoragePath)
75 const cacheDir = path.join(basePath, "cache")
76 await fs.mkdir(cacheDir, { recursive: true })
77 return cacheDir
78}
79
80/**
81 * Prompts the user to set a custom storage path

Callers 4

writeModelsFunction · 0.90
readModelsFunction · 0.90
writeModelEndpointsFunction · 0.90
readModelEndpointsFunction · 0.90

Calls 1

getStorageBasePathFunction · 0.85

Tested by

no test coverage detected