| 24 | SymlinkTask::SymlinkTask(QString final_path) : m_path(final_path) {} |
| 25 | |
| 26 | QString findBinPath(QString root, QString pattern) |
| 27 | { |
| 28 | auto path = FS::PathCombine(root, pattern); |
| 29 | if (QFileInfo::exists(path)) { |
| 30 | return path; |
| 31 | } |
| 32 | |
| 33 | auto entries = QDir(root).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot); |
| 34 | for (auto& entry : entries) { |
| 35 | path = FS::PathCombine(entry.absoluteFilePath(), pattern); |
| 36 | if (QFileInfo::exists(path)) { |
| 37 | return path; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | return {}; |
| 42 | } |
| 43 | |
| 44 | void SymlinkTask::executeTask() |
| 45 | { |
no test coverage detected