The problem was that split("", SkipEmptyParts) is the empty list.
See
https://sentry.io/owncloud/desktop-win-and-mac/issues/
251167186/
newInfo._size = job->_sizes.value(path);
newInfo._isExternal = permissionMap.value(removeTrailingSlash(path)).toString().contains("M");
newInfo._path = relativePath;
- newInfo._name = relativePath.split('/', QString::SkipEmptyParts).last();
+ newInfo._name = removeTrailingSlash(relativePath).split('/').last();
if (relativePath.isEmpty())
continue;