| 122 | } |
| 123 | |
| 124 | static bool isJsonFile(const char *filename) { |
| 125 | const char *dot = strrchr(filename, '.'); |
| 126 | if(!dot || dot == filename) return false; |
| 127 | return !strcmp(dot + 1, "json"); |
| 128 | } |
| 129 | |
| 130 | std::vector<std::string> |
| 131 | EvasApp::jsonFiles(const std::string &dirName, bool /*recurse*/) |