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 <matthieu.gallien@nextcloud.com>
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))