| 559 | } |
| 560 | |
| 561 | int cbm_unlink(const char *path) { |
| 562 | wchar_t *wpath = cbm_path_to_wide(path); |
| 563 | if (!wpath) { |
| 564 | return CBM_NOT_FOUND; |
| 565 | } |
| 566 | int ret = _wunlink(wpath); |
| 567 | free(wpath); |
| 568 | return ret; |
| 569 | } |
| 570 | |
| 571 | int cbm_rmdir(const char *path) { |
| 572 | wchar_t *wpath = cbm_path_to_wide(path); |