Added path concatination operator for PathReference.
This commit is contained in:
parent
28ae64169d
commit
3c7b7212b9
@ -66,6 +66,12 @@ public:
|
|||||||
[[nodiscard]] inline FileInfo getInfo() const;
|
[[nodiscard]] inline FileInfo getInfo() const;
|
||||||
[[nodiscard]] inline Optional<fs::path> getNativePath() const;
|
[[nodiscard]] inline Optional<fs::path> getNativePath() const;
|
||||||
[[nodiscard]] inline StreamError open(FileOpenMode mode, std::unique_ptr<Stream>& outStream) 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
|
class FileSystemAdapter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user