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

Function cbm_windows_mkdir_component

src/foundation/compat_fs.c:509–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509static bool cbm_windows_mkdir_component(wchar_t *path) {
510 bool created = _wmkdir(path) == 0;
511 if (!created && errno != EEXIST) {
512 return false;
513 }
514 DWORD attributes = GetFileAttributesW(path);
515 if (attributes == INVALID_FILE_ATTRIBUTES || (attributes & FILE_ATTRIBUTE_DIRECTORY) == 0U ||
516 (attributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0U) {
517 return false;
518 }
519 if (created) {
520 cbm_windows_stamp_dir_owner(path);
521 }
522 return true;
523}
524
525bool cbm_mkdir_p(const char *path, int mode) {
526 (void)mode;

Callers 1

cbm_mkdir_pFunction · 0.85

Calls 1

Tested by

no test coverage detected