Discovery: Attempt to fix issue with windows VFS and new files

(or moved files)
As seen in the log of #7558, a conflict may be issued by mistake.

See investigation in https://github.com/owncloud/client/issues/7558#issuecomment-547385362

This hopefully fix #7558
This commit is contained in:
Olivier Goffart 2019-10-29 13:20:25 +01:00 committed by Kevin Ottens
parent 513b0c723c
commit 88f86a56b1
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -331,6 +331,7 @@ void ProcessDirectoryJob::processFile(PathTuple path,
// remote will be rediscovered. This is just a fallback for a similar check
// in processFileAnalyzeRemoteInfo().
if (_queryServer == ParentNotChanged
&& dbEntry.isValid()
&& (dbEntry._type == ItemTypeVirtualFileDownload
|| localEntry.type == ItemTypeVirtualFileDownload)
&& (localEntry.isValid() || _queryLocal == ParentNotChanged)) {