diff options
author | alex-z <blackslayer4@gmail.com> | 2021-11-18 17:13:14 +0300 |
---|---|---|
committer | alex-z <blackslayer4@gmail.com> | 2021-11-22 13:37:18 +0300 |
commit | 8e6896ba03641b27a4327a278947c2f02c8f9f2f (patch) | |
tree | 87aebecdb16b81bf717b8ebf26c74dcfaa1bc178 /src/libsync/discovery.cpp | |
parent | b2e86c2ea33fc68b9a71c3a6c5e637a990831ffd (diff) |
Quick fix! Disable VFS folders removal for non-Windows VFS.
Signed-off-by: alex-z <blackslayer4@gmail.com>
Diffstat (limited to 'src/libsync/discovery.cpp')
-rw-r--r-- | src/libsync/discovery.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |