mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Handle broken shared file error gracefully
Signed-off-by: Brandon <me@branbit.com> Signed-off-by: Brandon <brandon.yeow@websparks.sg>
This commit is contained in:
parent
cb1c68a36e
commit
c92f520423
1 changed files with 8 additions and 1 deletions
|
@ -384,7 +384,14 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
|
|||
propertyMapToFileStat(map, file_stat.get());
|
||||
if (file_stat->type == ItemTypeDirectory)
|
||||
file_stat->size = 0;
|
||||
if (file_stat->type == ItemTypeSkip
|
||||
if (remotePerm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) {
|
||||
/* Handle broken shared file error gracefully instead of stopping sync in the desktop client.
|
||||
DO not set _error */
|
||||
qCWarning(lcDiscovery)
|
||||
<< "Missing path to a share :" << file << file_stat->path << file_stat->type << file_stat->size
|
||||
<< file_stat->modtime << file_stat->remotePerm.toString()
|
||||
<< file_stat->etag << file_stat->file_id;
|
||||
} else if (file_stat->type == ItemTypeSkip
|
||||
|| file_stat->size == -1
|
||||
|| file_stat->remotePerm.isNull()
|
||||
|| file_stat->etag.isEmpty()
|
||||
|
|
Loading…
Reference in a new issue