MCPcopy Create free account
hub / github.com/Tencent/phxsql / MoveDir

Method MoveDir

phxcomm/utils/phx_utils.cpp:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int Utils::MoveDir(const string &dirname, const string &destdirname) {
108 ColorLogInfo("%s move dir %s to %s", __func__, dirname.c_str(), destdirname.c_str());
109 return rename(dirname.c_str(), destdirname.c_str());
110}
111
112int Utils::RemoveDir(const string &path) {
113 int size = path.size();

Callers

nothing calls this directly

Calls 1

ColorLogInfoFunction · 0.85

Tested by

no test coverage detected