mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
SyncEngine: Ensure that the paths passed to the discovery ends with slashes
This was making the tx.pl test fail
This commit is contained in:
parent
edd806960d
commit
fd410a5a84
1 changed files with 4 additions and 0 deletions
|
@ -579,7 +579,11 @@ void SyncEngine::slotStartDiscovery()
|
||||||
_discoveryPhase->_excludes = _excludedFiles.data();
|
_discoveryPhase->_excludes = _excludedFiles.data();
|
||||||
_discoveryPhase->_statedb = _journal;
|
_discoveryPhase->_statedb = _journal;
|
||||||
_discoveryPhase->_localDir = _localPath;
|
_discoveryPhase->_localDir = _localPath;
|
||||||
|
if (!_discoveryPhase->_localDir.endsWith('/'))
|
||||||
|
_discoveryPhase->_localDir+='/';
|
||||||
_discoveryPhase->_remoteFolder = _remotePath;
|
_discoveryPhase->_remoteFolder = _remotePath;
|
||||||
|
if (!_discoveryPhase->_remoteFolder.endsWith('/'))
|
||||||
|
_discoveryPhase->_remoteFolder+='/';
|
||||||
_discoveryPhase->_syncOptions = _syncOptions;
|
_discoveryPhase->_syncOptions = _syncOptions;
|
||||||
_discoveryPhase->_shouldDiscoverLocaly = [this](const QString &s) { return shouldDiscoverLocally(s); };
|
_discoveryPhase->_shouldDiscoverLocaly = [this](const QString &s) { return shouldDiscoverLocally(s); };
|
||||||
_discoveryPhase->_selectiveSyncBlackList = selectiveSyncBlackList;
|
_discoveryPhase->_selectiveSyncBlackList = selectiveSyncBlackList;
|
||||||
|
|
Loading…
Reference in a new issue