| 131 | } |
| 132 | |
| 133 | static bool check_dir(acl::scan_dir& scan, const char* to, int* ndiff) |
| 134 | { |
| 135 | const char* rpath = scan.curr_path(); |
| 136 | if (rpath == false) |
| 137 | { |
| 138 | logger_error("get from's path error: %s, to: %s", |
| 139 | acl::last_serror(), to); |
| 140 | return false; |
| 141 | } |
| 142 | |
| 143 | SKIP(rpath); |
| 144 | |
| 145 | acl::string to_path; |
| 146 | to_path << to << SEP << rpath; |
| 147 | // printf(">>to_path: %s, to: %s\r\n", to_path.c_str(), to); |
| 148 | |
| 149 | if (access(to_path.c_str(), 0) == 0) |
| 150 | return true; |
| 151 | |
| 152 | (*ndiff)++; |
| 153 | logger("dir diff: %s, error: %s", to_path.c_str(), acl::last_serror()); |
| 154 | |
| 155 | return true; |
| 156 | } |
| 157 | |
| 158 | static void do_cmp(const acl::string& from, const acl::string& to) |
| 159 | { |
no test coverage detected
searching dependent graphs…