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

Function cbm_workspace_home_dir

src/foundation/workspace.c:568–575  ·  view source on GitHub ↗

Callers should not each re-derive these; a caller that resolved the home * directory differently would classify the same path differently. */

Source from the content-addressed store, hash-verified

566/* Callers should not each re-derive these; a caller that resolved the home
567 * directory differently would classify the same path differently. */
568const char *cbm_workspace_home_dir(void) {
569 const char *home = getenv("HOME");
570 if (home && home[0]) {
571 return home;
572 }
573 home = getenv("USERPROFILE");
574 return (home && home[0]) ? home : NULL;
575}
576
577const char *cbm_workspace_cache_dir(void) {
578 return cbm_resolve_cache_dir();

Callers 3

main_run_allow_rootFunction · 0.85
handle_index_repositoryFunction · 0.85
handle_index_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected