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

Function cbm_is_dir

src/foundation/platform.c:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 13

main_run_allow_rootFunction · 0.85
main_build_identityFunction · 0.85
cbm_cmd_installFunction · 0.85
cbm_ui_config_saveFunction · 0.85
append_roots_jsonFunction · 0.85
handle_browseFunction · 0.85
handle_index_startFunction · 0.85
cbm_artifact_exportFunction · 0.85
th_rmtreeFunction · 0.85
test_platform.cFile · 0.85
incremental_setupFunction · 0.85

Calls 2

cbm_path_to_wideFunction · 0.85
statClass · 0.70

Tested by 2

th_rmtreeFunction · 0.68
incremental_setupFunction · 0.68