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

Function cbm_workspace_grant_path

src/foundation/workspace.c:389–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387static const char WS_SENSITIVE_MARK = '!';
388
389bool cbm_workspace_grant_path(const char *cache_dir, char *out, size_t out_sz) {
390 if (!cache_dir || !cache_dir[0] || !out || out_sz == 0) {
391 return false;
392 }
393 int n = snprintf(out, out_sz, "%s/allowed_roots", cache_dir);
394 return n > 0 && (size_t)n < out_sz;
395}
396
397/* Walk the grant file, invoking visit for each entry. visit returns true to stop.
398 * Returns the number of entries seen. */

Callers 2

ws_grant_walkFunction · 0.85
cbm_workspace_grant_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected