diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 2b55eaf1c1d2f..8845b5cad0168 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1673,7 +1673,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;