MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / ensureMcpDataDir

Function ensureMcpDataDir

src/core/embeddings.ts:413–415  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

411}
412
413export async function ensureMcpDataDir(rootDir: string): Promise<void> {
414 await mkdir(join(rootDir, CACHE_DIR), { recursive: true });
415}
416
417export async function loadEmbeddingCache(rootDir: string, fileName: string): Promise<EmbeddingCache> {
418 try {

Callers 3

mainFunction · 0.85
persistGraphFunction · 0.85
saveEmbeddingCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected