MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / isBatchFile

Function isBatchFile

src/spawn.cpp:816–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816bool 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
830bool isExeFile(const QFileInfo& target)
831{

Callers 2

getFileExecutionTypeFunction · 0.85
getFileExecutionContextFunction · 0.85

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected