Merge pull request #3987 from nextcloud/bugfix/upload-new-folder-with-vfs

Quick fix! Disable VFS folders removal for non-Windows VFS.
This commit is contained in:
allexzander 2021-11-22 12:39:01 +02:00 committed by GitHub
commit 5294c5135c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;