item->_modtime = FileSystem::getModTime(originalFilePath);
if (item->_modtime <= 0) {
- return slotOnErrorStartFolderUnlock(item, SyncFileItem::SoftError, tr("Local file has invalid modified time. Do not upload to the server."));
+ _pendingChecksumFiles.remove(item->_file);
+ return slotOnErrorStartFolderUnlock(item, SyncFileItem::NormalError, tr("File %1 has invalid modified time. Do not upload to the server.").arg(QDir::toNativeSeparators(item->_file)));
}
if (prevModtime != item->_modtime) {
propagator()->_anotherSyncNeeded = true;
+ _pendingChecksumFiles.remove(item->_file);
qDebug() << "trigger another sync after checking modified time of item" << item->_file << "prevModtime" << prevModtime << "Curr" << item->_modtime;
return slotOnErrorStartFolderUnlock(item, SyncFileItem::SoftError, tr("Local file changed during syncing. It will be resumed."));
}
// or not yet fully copied to the destination.
if (fileIsStillChanging(*item)) {
propagator()->_anotherSyncNeeded = true;
+ _pendingChecksumFiles.remove(item->_file);
return slotOnErrorStartFolderUnlock(item, SyncFileItem::SoftError, tr("Local file changed during sync."));
}
// and not the _fileToUpload because we are checking the original file, not there
// probably temporary one.
_item->_modtime = FileSystem::getModTime(filePath);
- Q_ASSERT(_item->_modtime > 0);
if (_item->_modtime <= 0) {
- qCWarning(lcPropagateUpload()) << "invalid modified time" << _item->_file << _item->_modtime;
+ slotOnErrorStartFolderUnlock(SyncFileItem::NormalError, tr("File %1 has invalid modified time. Do not upload to the server.").arg(QDir::toNativeSeparators(_item->_file)));
+ return;
}
const QByteArray checksumType = propagator()->account()->capabilities().preferredUploadChecksumType();
return slotOnErrorStartFolderUnlock(SyncFileItem::SoftError, tr("File Removed (start upload) %1").arg(fullFilePath));
}
if (_item->_modtime <= 0) {
- return slotOnErrorStartFolderUnlock(
- SyncFileItem::SoftError, tr("Local file has invalid modified time. Do not upload to the server."));
+ slotOnErrorStartFolderUnlock(SyncFileItem::NormalError, tr("File %1 has invalid modified time. Do not upload to the server.").arg(QDir::toNativeSeparators(_item->_file)));
+ return;
}
Q_ASSERT(_item->_modtime > 0);
if (_item->_modtime <= 0) {
_item->_modtime = FileSystem::getModTime(originalFilePath);
if (_item->_modtime <= 0) {
- return slotOnErrorStartFolderUnlock(
- SyncFileItem::SoftError, tr("Local file has invalid modified time. Do not upload to the server."));
+ slotOnErrorStartFolderUnlock(SyncFileItem::NormalError, tr("File %1 has invalid modified time. Do not upload to the server.").arg(QDir::toNativeSeparators(_item->_file)));
+ return;
}
Q_ASSERT(_item->_modtime > 0);
if (_item->_modtime <= 0) {