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

Function CreateDir

phxqueue/comm/utils/file_util.cpp:484–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484bool CreateDir(const std::string &dir_path) {
485 if (!AccessDir(dir_path)) {
486 if (mkdir(dir_path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == -1) {
487 return false;
488 }
489 }
490 return true;
491}
492
493
494} // namespace utils

Callers 4

InitMethod · 0.85
PaxosInitMethod · 0.85
InitMethod · 0.85
PaxosInitMethod · 0.85

Calls 1

AccessDirFunction · 0.85

Tested by

no test coverage detected