| 153 | } |
| 154 | |
| 155 | std::vector<std::pair<fs::file_time_type, fs::path>> Utils::GetFiles(const std::string &path, |
| 156 | const std::string &extension) { |
| 157 | std::vector<std::pair<fs::file_time_type, fs::path>> files; |
| 158 | for (const auto &entry : fs::directory_iterator(path)) { |
| 159 | if (entry.is_regular_file() && entry.path().extension() == extension) { |
| 160 | files.emplace_back(fs::last_write_time(entry), entry.path()); |
| 161 | } |
| 162 | } |
| 163 | return files; |
| 164 | } |
| 165 | |
| 166 | std::string Utils::FindLatestSubDir(const std::string &path) { |
| 167 | if (!fs::exists(path) || !fs::is_directory(path)) { |
nothing calls this directly
no outgoing calls
no test coverage detected