| 91 | } |
| 92 | |
| 93 | static bool rmdir_on_empty(const char* path, bool recursive, bool rmdir_on) |
| 94 | { |
| 95 | myscan_dir scan; |
| 96 | |
| 97 | if (scan.open(path, recursive, rmdir_on) == false) { |
| 98 | printf("open path: %s error: %s\r\n", path, acl::last_serror()); |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | |
| 103 | scan_rmdir(scan); |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | static int rmdir_fn(ACL_SCAN_DIR* scan, const char* path, void* ctx) |
| 108 | { |
no test coverage detected
searching dependent graphs…