Added getNativePath() method to get the OS version of a virtual path.
This commit is contained in:
@@ -90,6 +90,19 @@ FileInfo StackedFileSystemAdapter::getFileInfo(const fs::path& file)
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<fs::path> StackedFileSystemAdapter::getNativePath(const fs::path& file)
|
||||
{
|
||||
for (auto& adapter : adapters_)
|
||||
{
|
||||
Optional<fs::path> result = adapter->getNativePath(file);
|
||||
if (!result.empty())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return NULL_OPTIONAL;
|
||||
}
|
||||
|
||||
StreamError StackedFileSystemAdapter::open(const fs::path& path, FileOpenMode mode, std::unique_ptr<Stream>& outStream)
|
||||
{
|
||||
for (auto& adapter : adapters_)
|
||||
|
||||
Reference in New Issue
Block a user