Skip to content

Commit

Permalink
Bugfix. Migrate non-placeholder shortcuts to placeholder version.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Apr 24, 2024
1 parent d92f353 commit 153d82e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,12 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
} else if (dbEntry._type == ItemTypeVirtualFileDehydration || localEntry.type == ItemTypeVirtualFileDehydration) {
item->_direction = SyncFileItem::Down;
item->_instruction = CSYNC_INSTRUCTION_SYNC;
item->_type = ItemTypeVirtualFileDehydration;
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;
}
} else if (!serverModified
&& (dbEntry._inode != localEntry.inode
|| (localEntry.isMetadataMissing && item->_type == ItemTypeFile && !FileSystem::isLnkFile(item->_file))
Expand Down

0 comments on commit 153d82e

Please sign in to comment.