Searched refs:current_file (Results 1 – 1 of 1) sorted by relevance
65 bool DeleteTmpFileIfNotChanged(const std::string& tmp_file, const std::string& current_file) { in DeleteTmpFileIfNotChanged() argument66 if (!FileExists(current_file) || in DeleteTmpFileIfNotChanged()67 ReadFile(current_file) != ReadFile(tmp_file)) { in DeleteTmpFileIfNotChanged()68 if (!RenameFile(tmp_file, current_file).ok()) { in DeleteTmpFileIfNotChanged()69 LOG(ERROR) << "Unable to delete " << current_file; in DeleteTmpFileIfNotChanged()72 LOG(DEBUG) << "Updated " << current_file; in DeleteTmpFileIfNotChanged()74 LOG(DEBUG) << "Didn't update " << current_file; in DeleteTmpFileIfNotChanged()