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

Function cbm_is_dir

src/foundation/platform.c:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166bool cbm_is_dir(const char *path) {
167 wchar_t *wpath = cbm_path_to_wide(path);
168 if (!wpath) {
169 return false;
170 }
171 DWORD attr = GetFileAttributesW(wpath);
172 free(wpath);
173 return attr != INVALID_FILE_ATTRIBUTES && (attr & FILE_ATTRIBUTE_DIRECTORY);
174}
175
176int64_t cbm_file_size(const char *path) {
177 wchar_t *wpath = cbm_path_to_wide(path);

Callers 15

main_run_allow_rootFunction · 0.85
main_build_identityFunction · 0.85
cbm_git_context_resolveFunction · 0.85
cbm_git_branch_resolveFunction · 0.85
cbm_cmd_installFunction · 0.85
canonical_cache_pathFunction · 0.85
cbm_ui_config_saveFunction · 0.85
append_roots_jsonFunction · 0.85
handle_browseFunction · 0.85
handle_index_startFunction · 0.85

Calls 2

cbm_path_to_wideFunction · 0.85
statClass · 0.70

Tested by 2

th_rmtreeFunction · 0.68
incremental_setupFunction · 0.68