From 3c021166fadddc2eaea4d8584a780b1972f6d392 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 5 Nov 2024 16:29:53 +0100 Subject: [PATCH] use proper item type when converting existing windows shortcuts we need to make shortcut files be proper virtual placeholder files let the sync engine use the proper item type for that Signed-off-by: Matthieu Gallien --- src/libsync/discovery.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 7300a4c5f..3fe2fb2d8 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1193,11 +1193,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( item->_direction = SyncFileItem::Down; item->_instruction = CSYNC_INSTRUCTION_SYNC; const auto pinState = _discoveryData->_syncOptions._vfs->pinState(path._local); - if (FileSystem::isLnkFile(path._local) && !_discoveryData->_syncOptions._vfs->pinState(path._local).isValid()) { - item->_type = ItemTypeVirtualFileDownload; - } else { - item->_type = ItemTypeVirtualFileDehydration; - } + item->_type = ItemTypeVirtualFileDehydration; } else if (!serverModified && (dbEntry._inode != localEntry.inode || (localEntry.isMetadataMissing && item->_type == ItemTypeFile && !FileSystem::isLnkFile(item->_file)) -- 2.30.2