mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
Fixed a small bug that prevented creating the properly named local
directory.
This commit is contained in:
parent
a0b3249419
commit
f481c02876
1 changed files with 4 additions and 2 deletions
|
@ -698,8 +698,10 @@ void OwnCloudSync::syncFiles()
|
|||
// Make local dirs
|
||||
for(int i = 0; i < localDirs.size(); i++ ) {
|
||||
QDir dir;
|
||||
if (!dir.mkdir(mLocalDirectory+localDirs[i]) ) {
|
||||
qDebug() << "Could not make directory "+mLocalDirectory+localDirs[i];
|
||||
if (!dir.mkdir(mLocalDirectory+
|
||||
stringRemoveBasePath(localDirs[i],mRemoteDirectory)) ) {
|
||||
qDebug() << "Could not make directory "+mLocalDirectory+
|
||||
stringRemoveBasePath(localDirs[i],mRemoteDirectory);
|
||||
} else {
|
||||
emit toLog(tr("Created local directory: %1").arg(localDirs[i]));
|
||||
//qDebug() << "Made directory "+mLocalDirectory+localDirs[i];
|
||||
|
|
Loading…
Reference in a new issue