MCPcopy Create free account
hub / github.com/Tencent/phxqueue / CopyDir2

Function CopyDir2

phxqueue/comm/utils/file_util.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468int 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
480bool AccessDir(const std::string &dir_path) {
481 return access(dir_path.c_str(), F_OK) == 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected