Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QStringList contents = root.entryList(QDir::NoDotAndDotDot | QDir::System | QDir::Hidden | QDir::AllDirs | QDir::Files);
- KUrl::List fileList;
- foreach (QString file, contents) {
- KIO::Job *job = KIO::move(KUrl(rootNode + QString::fromLatin1("/", 1) + file), KUrl(QString::fromAscii("../", 3) + file));
- fileList.append(KUrl::fromPath(workingDirectory + QString::fromLatin1("/", 1) + rootNode + file));
- };
- KIO::CopyJob * job = KIO::move(fileList, KUrl::fromPath(destinationDirectory));
- connect(job, SIGNAL(result(KJob *)), this, SLOT(moveResult(KJob *)));
- job->start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement