| 175 | } |
| 176 | |
| 177 | int 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 | |
| 190 | int CopyFile(const string &src_file_path, const string &dst_file_path) { |
| 191 | try { |
no outgoing calls
no test coverage detected