| 814 | } |
| 815 | |
| 816 | bool isBatchFile(const QFileInfo& target) |
| 817 | { |
| 818 | const auto batchExtensions = {"cmd", "bat"}; |
| 819 | |
| 820 | const QString extension = target.suffix(); |
| 821 | for (auto&& e : batchExtensions) { |
| 822 | if (extension.compare(e, Qt::CaseInsensitive) == 0) { |
| 823 | return true; |
| 824 | } |
| 825 | } |
| 826 | |
| 827 | return false; |
| 828 | } |
| 829 | |
| 830 | bool isExeFile(const QFileInfo& target) |
| 831 | { |
no test coverage detected