| 571 | } |
| 572 | |
| 573 | int cbm_unlink(const char *path) { |
| 574 | wchar_t *wpath = cbm_path_to_wide(path); |
| 575 | if (!wpath) { |
| 576 | return CBM_NOT_FOUND; |
| 577 | } |
| 578 | int ret = _wunlink(wpath); |
| 579 | free(wpath); |
| 580 | return ret; |
| 581 | } |
| 582 | |
| 583 | int cbm_rmdir(const char *path) { |
| 584 | wchar_t *wpath = cbm_path_to_wide(path); |