From: Matthieu Gallien Date: Fri, 18 Nov 2022 14:32:07 +0000 (+0100) Subject: update mtime on modified metdata of non virtual files X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~124^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1af2467e45b60a77b6896064b14e07b1310be3ea;p=nextcloud-desktop.git update mtime on modified metdata of non virtual files Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index 1f046c15d..d1cbd438f 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -377,6 +377,13 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item) emit itemCompleted(item); return; } + } else { + if (!FileSystem::setModTime(filePath, item->_modtime)) { + item->_instruction = CSYNC_INSTRUCTION_ERROR; + item->_errorString = tr("Could not update file metadata: %1").arg(filePath); + emit itemCompleted(item); + return; + } } // Updating the db happens on success