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

Function ensureDataDir

src/git/shadow.ts:27–31  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

25}
26
27async function ensureDataDir(rootDir: string): Promise<string> {
28 const dataPath = join(rootDir, DATA_DIR);
29 await mkdir(dataPath, { recursive: true });
30 return dataPath;
31}
32
33async function loadManifest(rootDir: string): Promise<RestorePoint[]> {
34 const manifestPath = join(rootDir, DATA_DIR, "restore-points.json");

Callers 2

saveManifestFunction · 0.85
createRestorePointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected