mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
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 <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
da920f6d4e
commit
7a6691f6e0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue