Merge pull request #3695 from owncloud/nomkpath3692

Folder: Do not create the sync folder if it does not exist #3692
This commit is contained in:
Olivier Goffart 2015-10-16 09:21:15 +02:00
commit 81e30cd8d2

View file

@ -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));