| 181 | { |
| 182 | |
| 183 | bool CheckFileOperationResult(int res, string const & fName) |
| 184 | { |
| 185 | if (!res) |
| 186 | return true; |
| 187 | |
| 188 | LOG(LWARNING, ("File operation error for file:", fName, "-", strerror(errno))); |
| 189 | |
| 190 | // additional check if file really was removed correctly |
| 191 | uint64_t dummy; |
| 192 | if (GetFileSize(fName, dummy)) |
| 193 | LOG(LERROR, ("File exists but can't be deleted. Sharing violation?", fName)); |
| 194 | |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | bool IsEOF(ifstream & fs) |
| 199 | { |
no test coverage detected