Added getAllPaths() method to get combined results from stacked adapters.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user