| 187 | } |
| 188 | |
| 189 | std::vector<std::filesystem::path> GetDirList( |
| 190 | const std::filesystem::path& path) { |
| 191 | std::vector<std::filesystem::path> dir_list; |
| 192 | for (auto it = std::filesystem::directory_iterator(path); |
| 193 | it != std::filesystem::directory_iterator(); |
| 194 | ++it) { |
| 195 | if (std::filesystem::is_directory(*it)) { |
| 196 | const std::filesystem::path dir_path = *it; |
| 197 | dir_list.push_back(dir_path); |
| 198 | } |
| 199 | } |
| 200 | return dir_list; |
| 201 | } |
| 202 | |
| 203 | namespace { |
| 204 |
no outgoing calls