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

Function cbm_file_exists

src/foundation/platform.c:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool cbm_file_exists(const char *path) {
155 wchar_t *wpath = cbm_path_to_wide(path);
156 if (!wpath) {
157 return false;
158 }
159 DWORD attr = GetFileAttributesW(wpath);
160 free(wpath);
161 return attr != INVALID_FILE_ATTRIBUTES;
162}
163
164bool cbm_is_dir(const char *path) {
165 wchar_t *wpath = cbm_path_to_wide(path);

Callers 15

cbm_opencode_config_pathFunction · 0.85
cbm_detect_agentsFunction · 0.85
uninstall_cli_agentsFunction · 0.85
uninstall_editor_agentsFunction · 0.85
agent_path_existsFunction · 0.85
resolve_project_tailFunction · 0.85

Calls 2

cbm_path_to_wideFunction · 0.85
statClass · 0.70

Tested by 7

mcp_find_corrupt_backupsFunction · 0.68
th_rmtreeFunction · 0.68