File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1679,6 +1679,18 @@ void ProcessDirectoryJob::processFileFinalize(
1679
1679
item->_type = CSyncEnums::ItemTypeVirtualFileDehydration;
1680
1680
}
1681
1681
1682
+ if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE &&
1683
+ !item->isDirectory () &&
1684
+ _discoveryData->_syncOptions ._vfs &&
1685
+ _discoveryData->_syncOptions ._vfs ->mode () == OCC::Vfs::Off &&
1686
+ (item->_type == CSyncEnums::ItemTypeVirtualFile ||
1687
+ item->_type == CSyncEnums::ItemTypeVirtualFileDownload ||
1688
+ item->_type == CSyncEnums::ItemTypeVirtualFileDehydration)) {
1689
+ item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_METADATA;
1690
+ item->_direction = SyncFileItem::Down;
1691
+ item->_type = CSyncEnums::ItemTypeFile;
1692
+ }
1693
+
1682
1694
if (path._original != path._target && (item->_instruction == CSYNC_INSTRUCTION_UPDATE_VFS_METADATA || item->_instruction == CSYNC_INSTRUCTION_UPDATE_METADATA || item->_instruction == CSYNC_INSTRUCTION_NONE)) {
1683
1695
ASSERT (_dirItem && _dirItem->_instruction == CSYNC_INSTRUCTION_RENAME);
1684
1696
// This is because otherwise subitems are not updated! (ideally renaming a directory could
You can’t perform that action at this time.
0 commit comments