| 507 | } |
| 508 | |
| 509 | static 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 | |
| 525 | bool cbm_mkdir_p(const char *path, int mode) { |
| 526 | (void)mode; |
no test coverage detected