Skip to content

Commit

Permalink
Fix bug with finding incorrect topLevelFolderPath.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Jan 22, 2024
1 parent 304e3e0 commit e4bbe4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/discoveryphase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4bbe4c

Please sign in to comment.