From a45e96b793da55815a7f14044f8bf848b30985f0 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 22 Jan 2025 12:31:04 +0100 Subject: [PATCH] fix the if check for invalid virtual LNK files should ensure we fix the DB metadata of LNK windows shortcuts with virtual files type Signed-off-by: Matthieu Gallien --- src/libsync/discovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 831b85e334bb7..dfd59a3b8cf82 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1679,7 +1679,7 @@ void ProcessDirectoryJob::processFileFinalize( item->_type = CSyncEnums::ItemTypeVirtualFileDehydration; } - if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE && + if (item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && !item->isDirectory() && _discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() == OCC::Vfs::Off &&