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

Function cbm_agent_registry_path_exists

src/cli/cli.c:9158–9166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9156}
9157
9158static bool cbm_agent_registry_path_exists(const char *path, const void *context) {
9159 (void)context;
9160 struct stat state;
9161#ifndef _WIN32
9162 return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode);
9163#else
9164 return path && path[0] && stat(path, &state) == 0;
9165#endif
9166}
9167
9168static bool cbm_agent_registry_command_exists(const char *command, const void *context) {
9169 const cbm_agent_registry_context_t *registry = context;

Callers

nothing calls this directly

Calls 2

lstatFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected