mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
parent
9401273daf
commit
f6ca649308
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user