| 86 | } |
| 87 | |
| 88 | int getFileSetIndex(int tsIdx, std::shared_ptr<FileSetInfo> info) |
| 89 | { |
| 90 | int currentSum = 0; |
| 91 | for (size_t i = 0; i < info->NumberOfSteps.size(); i++) |
| 92 | { |
| 93 | currentSum += info->NumberOfSteps[i]; |
| 94 | if (tsIdx < currentSum) |
| 95 | { |
| 96 | return info->FileNameIndex[i]; |
| 97 | } |
| 98 | } |
| 99 | return -1; |
| 100 | } |
| 101 | |
| 102 | bool hasWildcards(const std::string& pattern) |
| 103 | { |