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 Markus Goetz
parent 72b886fe87
commit 91d9f9c9e8

View File

@ -332,6 +332,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)) {