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

Function RemoveFile

phxqueue/comm/utils/file_util.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177int RemoveFile(const string &file_path) {
178 int ret{0};
179 if (-1 == unlink(file_path.c_str())) {
180 ret = errno;
181 // TODO:
182 //QLErr("unlink \"%s\" err %d", file_path.c_str(), ret);
183 }
184 // TODO:
185 //QLInfo("unlink \"%s\" ok", file_path.c_str());
186
187 return ret;
188}
189
190int CopyFile(const string &src_file_path, const string &dst_file_path) {
191 try {

Callers 1

RecursiveRemoveDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected