From 1f43c47861b3b8dbdf3dd86e39abec5ae512c0e1 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 28 Aug 2015 14:40:45 +0200 Subject: [PATCH] Folder: Do not create the sync folder if it does not exist #3692 --- src/gui/folder.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 5b0f4b0c8..0b0ae1dbe 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -156,13 +156,6 @@ void Folder::checkLocalPath() if( fi.isDir() && fi.isReadable() ) { qDebug() << "Checked local path ok"; } else { - if( !FileSystem::fileExists(_definition.localPath) ) { - // try to create the local dir - QDir d(_definition.localPath); - if( d.mkpath(_definition.localPath) ) { - qDebug() << "Successfully created the local dir " << _definition.localPath; - } - } // Check directory again if( !FileSystem::fileExists(_definition.localPath) ) { _syncResult.setErrorString(tr("Local folder %1 does not exist.").arg(_definition.localPath));