mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Folder: Do not create the sync folder if it does not exist #3692
This commit is contained in:
parent
f38deb44fb
commit
1f43c47861
1 changed files with 0 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue