mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
SocketAPI: If filename has a trailing slash, remove it.
The SyncJournal stores the the names of directories without trailing slash.
This commit is contained in:
parent
5a6eecd694
commit
9086f09fe2
1 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,10 @@ SyncJournalFileRecord SocketApi::dbFileRecord_capi( Folder *folder, QString file
|
|||
fileName.remove(0, folder->path().length());
|
||||
}
|
||||
|
||||
// remove trailing slash
|
||||
if( fileName.endsWith( QLatin1Char('/') ) ) {
|
||||
fileName.truncate(fileName.length()-1);
|
||||
}
|
||||
SqlQuery *query = getSqlQuery(folder);
|
||||
SyncJournalFileRecord rec;
|
||||
|
||||
|
|
Loading…
Reference in a new issue