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

Function cache_dir

src/mcp/mcp.c:2242–2249  ·  view source on GitHub ↗

Returns the cache directory. Writes to buf, returns buf for convenience. */

Source from the content-addressed store, hash-verified

2240
2241/* Returns the cache directory. Writes to buf, returns buf for convenience. */
2242static const char *cache_dir(char *buf, size_t bufsz) {
2243 const char *dir = cbm_resolve_cache_dir();
2244 if (!dir) {
2245 dir = cbm_tmpdir();
2246 }
2247 snprintf(buf, bufsz, "%s", dir);
2248 return buf;
2249}
2250
2251/* Returns full .db path for a project: <cache_dir>/<project>.db */
2252static const char *project_db_path(const char *project, char *buf, size_t bufsz) {

Callers 7

resolve_project_tailFunction · 0.85
project_db_pathFunction · 0.85
build_project_list_errorFunction · 0.85
handle_list_projectsFunction · 0.85
index_root_owner_resolveFunction · 0.85
resolve_path_ownerFunction · 0.85

Calls 2

cbm_resolve_cache_dirFunction · 0.85
cbm_tmpdirFunction · 0.85

Tested by

no test coverage detected