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

Function cbm_workspace_grant_path

src/foundation/workspace.c:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338static const char WS_SENSITIVE_MARK = '!';
339
340bool cbm_workspace_grant_path(const char *cache_dir, char *out, size_t out_sz) {
341 if (!cache_dir || !cache_dir[0] || !out || out_sz == 0) {
342 return false;
343 }
344 int n = snprintf(out, out_sz, "%s/allowed_roots", cache_dir);
345 return n > 0 && (size_t)n < out_sz;
346}
347
348/* Walk the grant file, invoking visit for each entry. visit returns true to stop.
349 * 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