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

Method FileCmpByFileTime

phxcomm/utils/phx_utils.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int Utils::FileCmpByFileTime(const string &file1, const string &file2) {
96 uint32_t time1 = GetFileTime(file1);
97 uint32_t time2 = GetFileTime(file2);
98 if (time1 == time2)
99 return 0;
100 return time1 < time2 ? -1 : 1;
101}
102
103int Utils::ReMoveFile(const string &filename) {
104 return remove(filename.c_str());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected