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

Function cbm_should_skip_dir

src/discover/discover.c:340–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338/* ── Public filter functions ─────────────────────── */
339
340bool cbm_should_skip_dir(const char *dirname, cbm_index_mode_t mode) {
341 if (!dirname) {
342 return false;
343 }
344
345 if (str_in_list(dirname, ALWAYS_SKIP_DIRS)) {
346 return true;
347 }
348
349 /* Fast discovery applies to both MODERATE and FAST — only FULL keeps everything. */
350 if (mode != CBM_MODE_FULL) {
351 if (str_in_list(dirname, FAST_SKIP_DIRS)) {
352 return true;
353 }
354 }
355
356 return false;
357}
358
359bool cbm_has_ignored_suffix(const char *filename, cbm_index_mode_t mode) {
360 if (!filename) {

Callers 4

should_skip_directoryFunction · 0.85
pkgmap_walk_dirFunction · 0.85
test_discover.cFile · 0.85

Calls 1

str_in_listFunction · 0.85

Tested by

no test coverage detected