MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / clearPath

Method clearPath

src/resultviewer.cpp:370–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void ResultViewer::clearPath(const QString &curDir) {
371 QDir dir(curDir);
372 QStringList fileList = dir.entryList(QDir::Files);
373
374 for (int i = 0; i < fileList.size(); i++) {
375 dir.remove(fileList[i]);
376 }
377
378 QStringList dirList = dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot);
379
380 for (int i = 0; i < dirList.size(); i++) {
381 clearPath(curDir + dirList[i] + QDir::separator());
382 dir.rmdir(dirList[i]);
383 }
384}
385
386void ResultViewer::deleteContestant() {
387 auto *messageBox = new QMessageBox(QMessageBox::Warning, tr("LemonLime"),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected