| 121 | } |
| 122 | |
| 123 | static bool rmdir_on_empty2(const char* path, bool recursive, bool rmdir_on) |
| 124 | { |
| 125 | acl::scan_dir scan; |
| 126 | |
| 127 | if (scan.open(path, recursive, rmdir_on) == false) { |
| 128 | printf("open path: %s error: %s\r\n", path, acl::last_serror()); |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | if (rmdir_on) { |
| 133 | scan.set_rmdir_callback(rmdir_fn, &scan); |
| 134 | } |
| 135 | |
| 136 | scan_rmdir(scan); |
| 137 | return true; |
| 138 | } |
| 139 | |
| 140 | static void usage(const char* procname) |
| 141 | { |
no test coverage detected
searching dependent graphs…