// mini-jobs later on, we just update metadata right now.
if (item->_direction == SyncFileItem::Down) {
- auto modificationHappened = false;
+ auto modificationHappened = false; // Decides whether or not we modify file metadata
QString filePath = _localPath + item->_file;
// If the 'W' remote permission changed, update the local filesystem
modificationHappened = FileSystem::setFileReadOnlyWeak(filePath, isReadOnly);
}
+ modificationHappened |= item->_size != prev._fileSize;
+
auto rec = item->toSyncJournalFileRecordWithInode(filePath);
if (rec._checksumHeader.isEmpty())
rec._checksumHeader = prev._checksumHeader;