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

Function ws_list_visit

src/foundation/workspace.c:456–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454} ws_list_t;
455
456static bool ws_list_visit(const char *root, bool sensitive, void *ctx) {
457 ws_list_t *l = ctx;
458 int n = snprintf(l->out + l->used, l->out_sz - l->used, "%s%s\n",
459 sensitive ? "(approved) " : "", root);
460 if (n > 0 && (size_t)n < l->out_sz - l->used) {
461 l->used += (size_t)n;
462 }
463 return false;
464}
465
466bool cbm_workspace_grant_list(const char *cache_dir, char *out, size_t out_sz) {
467 if (!out || out_sz == 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected