Commit d82d8098 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove temporary directory

parent 164341a3
......@@ -1706,6 +1706,16 @@ void KMKernel::cleanupTemporaryFiles()
fprintf(stderr, "%s was removed .\n", qPrintable(tempFile.fileName()));
}
}
const QStringList lstRepo = dir.entryList(QStringList{QStringLiteral("messageviewer_*.index.*")});
qCDebug(KMAIL_LOG) << " list repo to delete " << lstRepo;
for (const QString &file : lstRepo) {
QDir tempDir(QDir::tempPath() + QLatin1Char('/') + file);
if (!tempDir.removeRecursively()) {
fprintf(stderr, "%s was not removed .\n", qPrintable(tempDir.path()));
} else {
fprintf(stderr, "%s was removed .\n", qPrintable(tempDir.path()));
}
}
}
void KMKernel::stopAgentInstance()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment