Added getAllPaths() method to get combined results from stacked adapters.

This commit is contained in:
2025-03-02 20:02:03 +01:00
parent 3d0f5b9a3f
commit b6657189d3
5 changed files with 75 additions and 2 deletions

View File

@@ -112,4 +112,12 @@ StreamError StackedFileSystemAdapter::open(const fs::path& path, FileOpenMode mo
return StreamError::IO_ERROR;
}
void StackedFileSystemAdapter::getAllPaths(const fs::path& path, std::vector<PathReference>& outPaths)
{
for (auto& adapter : adapters_)
{
adapter->getAllPaths(path, outPaths);
}
}
} // namespace mijin