From f481c028767d449b870912f28e68ce0840abd358 Mon Sep 17 00:00:00 2001 From: Juan Carlos Cornejo Date: Sat, 12 Nov 2011 01:08:20 -0500 Subject: [PATCH] Fixed a small bug that prevented creating the properly named local directory. --- OwnCloudSync.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OwnCloudSync.cpp b/OwnCloudSync.cpp index 0d789fb45..e110dedd0 100644 --- a/OwnCloudSync.cpp +++ b/OwnCloudSync.cpp @@ -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];