| 569 | } |
| 570 | |
| 571 | int cbm_rmdir(const char *path) { |
| 572 | wchar_t *wpath = cbm_path_to_wide(path); |
| 573 | if (!wpath) { |
| 574 | return CBM_NOT_FOUND; |
| 575 | } |
| 576 | int ret = _wrmdir(wpath); |
| 577 | free(wpath); |
| 578 | return ret; |
| 579 | } |
| 580 | |
| 581 | /* Build a properly-quoted Windows command line from an argv array. |
| 582 | * Returns a heap-allocated wide string, or NULL on allocation failure. |