| 466 | } |
| 467 | |
| 468 | int CopyDir2(const string &src_dir_path, const string &dst_dir_path) { |
| 469 | if (-1 == ftw(src_dir_path.c_str(), DoCopyDir2, FTW_MAX_FD)) { |
| 470 | // TODO: |
| 471 | //QLErr("ftw \"%s\" -> \"%s\" err %d", |
| 472 | // src_dir_path.c_str(), dst_dir_path.c_str(), errno); |
| 473 | |
| 474 | return errno; |
| 475 | } |
| 476 | |
| 477 | return 0; |
| 478 | } |
| 479 | |
| 480 | bool AccessDir(const std::string &dir_path) { |
| 481 | return access(dir_path.c_str(), F_OK) == 0; |
nothing calls this directly
no outgoing calls
no test coverage detected