| 323 | } |
| 324 | |
| 325 | static std::list<UString> recursiveFindFilesInDirectory(const FileSystem &fs, UString path, |
| 326 | const UString &extension) |
| 327 | { |
| 328 | std::list<UString> foundFiles; |
| 329 | auto list = fs.enumerateDirectory(path, ""); |
| 330 | for (auto &entry : list) |
| 331 | { |
| 332 | if (ends_with(entry, extension)) |
| 333 | { |
| 334 | foundFiles.push_back(path + "/" + entry); |
| 335 | } |
| 336 | else |
| 337 | { |
| 338 | auto subdirFiles = recursiveFindFilesInDirectory(fs, path + "/" + entry, extension); |
| 339 | foundFiles.insert(foundFiles.end(), subdirFiles.begin(), subdirFiles.end()); |
| 340 | } |
| 341 | } |
| 342 | return foundFiles; |
| 343 | } |
| 344 | |
| 345 | std::list<UString> FileSystem::enumerateDirectoryRecursive(const UString &basePath, |
| 346 | const UString &extension) const |
no test coverage detected