From: Matthieu Gallien Date: Tue, 30 Apr 2024 11:33:58 +0000 (+0200) Subject: as a last resort, try to update VFS metadata of folders when discovered X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~15^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8131a00265bedd1fe9f5e74000df4ecbd653eb22;p=nextcloud-desktop.git as a last resort, try to update VFS metadata of folders when discovered when doing local discovery, it is possible that files or folders may be discovered with VFS metadata not up to date (i.e. placeholder file not set in sync) in such case, generate a propagation instruction to set them in sync Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index efb221c15..6eb2eefd7 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1719,7 +1719,7 @@ void ProcessDirectoryJob::processFileFinalize( } if (_discoveryData->_syncOptions._vfs && - item->_type == CSyncEnums::ItemTypeFile && + (item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) && item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && !_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) { item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_VFS_METADATA;