MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sh_dir_exists

Function sh_dir_exists

src/pipeline/pass_shell.c:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static bool sh_dir_exists(const sh_index_t *ix, const char *dir) {
263 if (!dir[0]) {
264 return true;
265 }
266 char key[CBM_SZ_4K];
267 int lo = 0;
268 int hi = 0;
269 sh_range(&ix->files, dir, key, sizeof(key), &lo, &hi);
270 return hi > lo;
271}
272
273/* ── Path values ───────────────────────────────────────────────────── */
274

Callers 2

sh_t_foundFunction · 0.85
sh_cd_targetFunction · 0.85

Calls 1

sh_rangeFunction · 0.85

Tested by

no test coverage detected