| 47 | } |
| 48 | |
| 49 | bool isExecutableFilename(const QString& filename) |
| 50 | { |
| 51 | static const std::set<QString> exeExtensions = {"exe", "cmd", "bat"}; |
| 52 | |
| 53 | const auto ext = QFileInfo(filename).suffix().toLower(); |
| 54 | |
| 55 | return exeExtensions.contains(ext); |
| 56 | } |
| 57 | |
| 58 | bool canRunFile(bool isArchive, const QString& filename) |
| 59 | { |
no outgoing calls
no test coverage detected