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

Function cache_dir

src/mcp/mcp.c:1871–1878  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1869
1870/* Returns the cache directory. Writes to buf, returns buf for convenience. */
1871static const char *cache_dir(char *buf, size_t bufsz) {
1872 const char *dir = cbm_resolve_cache_dir();
1873 if (!dir) {
1874 dir = cbm_tmpdir();
1875 }
1876 snprintf(buf, bufsz, "%s", dir);
1877 return buf;
1878}
1879
1880/* Returns full .db path for a project: <cache_dir>/<project>.db */
1881static const char *project_db_path(const char *project, char *buf, size_t bufsz) {

Callers 5

resolve_project_tailFunction · 0.85
project_db_pathFunction · 0.85
build_project_list_errorFunction · 0.85
handle_list_projectsFunction · 0.85

Calls 2

cbm_resolve_cache_dirFunction · 0.85
cbm_tmpdirFunction · 0.85

Tested by

no test coverage detected