From 8e6896ba03641b27a4327a278947c2f02c8f9f2f Mon Sep 17 00:00:00 2001 From: alex-z Date: Thu, 18 Nov 2021 16:13:14 +0200 Subject: Quick fix! Disable VFS folders removal for non-Windows VFS. Signed-off-by: alex-z --- src/libsync/discovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libsync/discovery.cpp') diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index d8b894d0f..8d16c6f0a 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -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; -- cgit v1.2.3