From e4bbe4c59976f44cadc719050c180d5fb6e58721 Mon Sep 17 00:00:00 2001 From: alex-z Date: Mon, 22 Jan 2024 16:46:18 +0100 Subject: [PATCH] Fix bug with finding incorrect topLevelFolderPath. Signed-off-by: alex-z --- src/libsync/discoveryphase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 4e6478f6358e1..68e91bdd26f74 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -679,7 +679,7 @@ void DiscoverySingleDirectoryJob::metadataReceived(const QJsonDocument &json, in topLevelFolderPath = QStringLiteral("/"); break; } - if (_subPath.startsWith(topLevelPath)) { + if (_subPath.startsWith(topLevelPath + QLatin1Char('/'))) { const auto topLevelPathSplit = topLevelPath.split(QLatin1Char('/')); topLevelFolderPath = topLevelPathSplit.join(QLatin1Char('/')); break;