Commit 9cd3925d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Generate full collection path

parent de22d53c
......@@ -64,16 +64,15 @@ void CompareExportFile::compareFiles()
if (!mTempDir) {
mTempDir = new QTemporaryDir;
//TODO remove it.
mTempDir->setAutoRemove(false);
//mTempDir->setAutoRemove(false);
}
const KArchiveFile *currentFile = static_cast<const KArchiveFile *>(currentEntry);
QString adaptFile = file;
adaptFile.replace(QStringLiteral("configs/"), QStringLiteral("config/"));
const QString fileName = mTempDir->path() + QLatin1Char('/') + adaptFile;
QFileInfo fileInfo(fileName);
//create path
const QFileInfo fileInfo(fileName);
QDir().mkpath(fileInfo.dir().path());
QFile f(fileName);
......@@ -92,7 +91,7 @@ void CompareExportFile::compareFiles()
void CompareExportFile::compareFile(const QString &referenceFile, const QString &archiveFile)
{
qDebug() << "referenceFile " << referenceFile << " archiveFile " << archiveFile;
//qDebug() << "referenceFile " << referenceFile << " archiveFile " << archiveFile;
QProcess proc;
const QStringList args = QStringList()
<< QStringLiteral("-u")
......
......@@ -29,11 +29,9 @@ ResourceConverterTest::~ResourceConverterTest()
QString ResourceConverterTest::convertToFullCollectionPath(const qlonglong collectionValue)
{
qDebug() << " QString ResourceConverterTest::convertToFullCollectionPath(const qlonglong collectionValue) not implemented yet!";
return QStringLiteral("COLLECTION_CONVERTED");
return QStringLiteral("foo/bla bla/bli%1").arg(collectionValue);
}
Akonadi::Collection::Id ResourceConverterTest::convertFolderPathToCollectionId(const QString &path)
{
//TODO implement it
......
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