Do not require server replies to contain an mtime

The check was added for #6317 in commit
13eb64584f.

We did see missing mtimes in replies in tests with live servers though.
Possibly those were old incomplete responses cached in the stat cache?
This commit is contained in:
Christian Kamm 2018-07-25 11:13:14 +02:00 committed by Kevin Ottens
parent 9401273daf
commit f6ca649308
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -280,12 +280,10 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
int slash = file.lastIndexOf('/');
result.name = file.mid(slash + 1);
result.size = -1;
result.modtime = -1;
propertyMapToFileStat(map, result);
if (result.isDirectory)
result.size = 0;
if (result.size == -1
|| result.modtime == -1
|| result.remotePerm.isNull()
|| result.etag.isEmpty()
|| result.fileId.isEmpty()) {