Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-01-24 22:35:52 +01:00
parent eb9a496f41
commit fbb0a33eb7
No known key found for this signature in database
GPG key ID: 7D0F74F05C22F553

View file

@ -1181,7 +1181,7 @@ void PropagateDownloadFile::downloadFinished()
qCInfo(lcPropagateDownload) << "setting instruction to" << _item->_instruction << _item->_file; qCInfo(lcPropagateDownload) << "setting instruction to" << _item->_instruction << _item->_file;
} }
bool previousFileExists = FileSystem::fileExists(filename) && _item->_instruction != CSYNC_INSTRUCTION_CASE_CLASH_CONFLICT; auto previousFileExists = FileSystem::fileExists(filename) && _item->_instruction != CSYNC_INSTRUCTION_CASE_CLASH_CONFLICT;
if (previousFileExists) { if (previousFileExists) {
// Preserve the existing file permissions. // Preserve the existing file permissions.
const auto existingFile = QFileInfo{filename}; const auto existingFile = QFileInfo{filename};