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

@@ -33,6 +33,7 @@ public:
FileInfo getFileInfo(const fs::path& file) override;
Optional<fs::path> getNativePath(const fs::path& file) override;
StreamError open(const fs::path& path, FileOpenMode mode, std::unique_ptr<Stream>& outStream) override;
void getAllPaths(const fs::path &path, std::vector<PathReference> &outPaths) override;
inline void addAdapter(std::unique_ptr<FileSystemAdapter>&& adapter) {
adapters_.push_back(std::move(adapter));