Skip to content
Snippets Groups Projects
Commit 9385fc12 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix recursive directory removal.

It's not an error if the directory does not exist.
parent 3488b044
Branches
Tags
No related merge requests found
......@@ -78,6 +78,8 @@ QString MaemoGlobal::remoteEnvironment(const QList<Utils::EnvironmentItem> &list
bool MaemoGlobal::removeRecursively(const QString &filePath, QString &error)
{
QFileInfo fileInfo(filePath);
if (!fileInfo.exists())
return true;
if (fileInfo.isDir()) {
QDir dir(filePath);
QStringList fileNames = dir.entryList(QDir::Files | QDir::Hidden
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment