Added path concatination operator for PathReference.

This commit is contained in:
Patrick 2024-12-25 01:56:36 +01:00
parent 28ae64169d
commit 3c7b7212b9

View File

@ -66,6 +66,12 @@ public:
[[nodiscard]] inline FileInfo getInfo() const;
[[nodiscard]] inline Optional<fs::path> getNativePath() const;
[[nodiscard]] inline StreamError open(FileOpenMode mode, std::unique_ptr<Stream>& outStream) const;
[[nodiscard]]
PathReference operator/(const fs::path& more) const
{
return PathReference(adapter_, path_ / more);
}
};
class FileSystemAdapter