| 81 | } |
| 82 | |
| 83 | void scan_dir::set_rmdir_callback(int (*fn)(ACL_SCAN_DIR*, const char*, void*), |
| 84 | void* ctx) |
| 85 | { |
| 86 | if (scan_ == NULL) { |
| 87 | logger_error("please call scan_dir::open first!"); |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | acl_scan_dir_ctl(scan_, ACL_SCAN_CTL_RMDIR_FN, fn, |
| 92 | ACL_SCAN_CTL_CTX, ctx, ACL_SCAN_CTL_END); |
| 93 | } |
| 94 | |
| 95 | int scan_dir::rmdir_def(ACL_SCAN_DIR*, const char* path, void* ctx) |
| 96 | { |
no test coverage detected