SHOW:
|
|
- or go back to the newest paste.
1 | QStringList contents = root.entryList(QDir::NoDotAndDotDot | QDir::System | QDir::Hidden | QDir::AllDirs | QDir::Files); | |
2 | KUrl::List fileList; | |
3 | foreach (QString file, contents) { | |
4 | - | // QFile(rootNode + QString::fromLatin1("/", 1) + file).rename(QString::fromAscii("../", 3) + file); |
4 | + | |
5 | fileList.append(KUrl::fromPath(workingDirectory + QString::fromLatin1("/", 1) + rootNode + file)); | |
6 | }; | |
7 | KIO::CopyJob * job = KIO::move(fileList, KUrl::fromPath(destinationDirectory)); | |
8 | connect(job, SIGNAL(result(KJob *)), this, SLOT(moveResult(KJob *))); | |
9 | job->start(); |