Quick fix! Disable VFS folders removal for non-Windows VFS.
authoralex-z <blackslayer4@gmail.com>
Thu, 18 Nov 2021 14:13:14 +0000 (16:13 +0200)
committeralex-z <blackslayer4@gmail.com>
Mon, 22 Nov 2021 10:37:18 +0000 (12:37 +0200)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/libsync/discovery.cpp

index d8b894d0f4909a5981f86b92a41e7e2bc66bdf00..8d16c6f0a8565e6fa30e071f3798d23f95428498 100644 (file)
@@ -1000,6 +1000,11 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
             return;
         }
 
+        if (localEntry.isDirectory && _discoveryData->_syncOptions._vfs->mode() != Vfs::WindowsCfApi) {
+            // for VFS folders on Windows only
+            return;
+        }
+
         Q_ASSERT(item->_instruction == CSYNC_INSTRUCTION_NEW);
         if (item->_instruction != CSYNC_INSTRUCTION_NEW) {
             qCWarning(lcDisco) << "Trying to wipe a virtual item" << path._local << " with item->_instruction" << item->_instruction;