The check was added for #6317 in commit
13eb64584f5f96647ced39dcd3252860ebec5a37.
We did see missing mtimes in replies in tests with live servers though.
Possibly those were old incomplete responses cached in the stat cache?
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()) {