Skip to content

Commit

Permalink
Create missing dirs with addWorldFiles()
Browse files Browse the repository at this point in the history
  • Loading branch information
martyone authored and Bernd Wachter committed May 27, 2013
1 parent 1cfaa30 commit b28af35
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libssu/sandbox.cpp
Expand Up @@ -144,11 +144,10 @@ bool Sandbox::addWorldFiles(const QString &directory, QDir::Filters filters,
QFileInfo(directory).absoluteFilePath()));

if (!QFileInfo(directory).exists()){
qWarning("%s: Directory does not exist: '%s'", Q_FUNC_INFO, qPrintable(directory));
return false;
}

if (!QFileInfo(directory).isDir()){
// Accept missing world directory - allow to create directories inside sandbox
qDebug("%s: Directory does not exist - an empty one will be created instead of copied: '%s'",
Q_FUNC_INFO, qPrintable(directory));
} else if (!QFileInfo(directory).isDir()){
qWarning("%s: Is not a directory: '%s'", Q_FUNC_INFO, qPrintable(directory));
return false;
}
Expand Down

0 comments on commit b28af35

Please sign in to comment.