| 199 | } |
| 200 | |
| 201 | int charset_transfer::check_path(const char* path, const char* charset) |
| 202 | { |
| 203 | acl::scan_dir scan; |
| 204 | if (scan.open(path, true) == false) |
| 205 | { |
| 206 | logger_error("open %s error %s", path, acl::last_serror()); |
| 207 | return -1; |
| 208 | } |
| 209 | |
| 210 | const char* filepath; |
| 211 | int count = 0; |
| 212 | while ((filepath = scan.next_file(true)) != NULL) |
| 213 | { |
| 214 | if (check_file(filepath, charset)) |
| 215 | count++; |
| 216 | } |
| 217 | |
| 218 | return count; |
| 219 | } |
| 220 | |
| 221 | int charset_transfer::transfer(bool recursive /* = true */) |
| 222 | { |
nothing calls this directly
no test coverage detected