Lines Matching defs:Record
267 bool CKnownFileList::Append(CKnownFile *Record, bool afterHashing)
269 if (Record->GetFileSize() > 0) {
270 const CMD4Hash& tkey = Record->GetFileHash();
273 m_knownFileMap[tkey] = Record;
277 if (KnownFileMatches(Record, existing->GetFileName(), existing->GetLastChangeDatetime(), existing->GetFileSize())) {
279 AddDebugLogLineN(logKnownFiles, CFormat(wxT("%s is already on the list")) % Record->GetFileName().GetPrintable());
281 } else if (IsOnDuplicates(Record->GetFileName(), Record->GetLastChangeDatetime(), Record->GetFileSize())) {
284 AddDebugLogLineN(logKnownFiles, CFormat(wxT("%s is on the duplicates list")) % Record->GetFileName().GetPrintable());
287 if (afterHashing && existing->GetFileSize() == Record->GetFileSize()) {
291 time_t newDate = Record->GetLastChangeDatetime();
292 CPath newName = Record->GetFileName();
296 Record->LoadFromFile(&f);
297 Record->SetLastChangeDatetime(newDate);
298 Record->SetFileName(newName);
307 m_knownFileMap[tkey] = Record;
314 Record->GetFileName());