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

Fix export

parent e3437a20
......@@ -60,6 +60,7 @@ void CompareExportFile::compareFiles()
if (currentEntry && currentEntry->isFile()) {
if (!mTempDir) {
mTempDir = new QTemporaryDir;
//TODO remove it.
mTempDir->setAutoRemove(false);
}
const KArchiveFile *currentFile = static_cast<const KArchiveFile *>(currentEntry);
......@@ -67,6 +68,7 @@ void CompareExportFile::compareFiles()
QString adaptFile = file;
adaptFile.replace(QStringLiteral("configs/"), QStringLiteral("config/"));
const QString fileName = mTempDir->path() + QLatin1Char('/') + adaptFile;
QDir().mkpath(mTempDir->path() + QLatin1String("/config/"));
QFile f(fileName);
qDebug() << " fileName" << fileName;
......
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