summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/object_cas.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/object_cas.hpp')
-rw-r--r--src/buildtool/file_system/object_cas.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/file_system/object_cas.hpp b/src/buildtool/file_system/object_cas.hpp
index 6dd1ae9f..185dc26a 100644
--- a/src/buildtool/file_system/object_cas.hpp
+++ b/src/buildtool/file_system/object_cas.hpp
@@ -65,6 +65,12 @@ class ObjectCAS {
auto operator=(ObjectCAS&&) -> ObjectCAS& = delete;
~ObjectCAS() noexcept = default;
+ /// \brief Obtain path to the storage root.
+ [[nodiscard]] auto StorageRoot() const noexcept
+ -> std::filesystem::path const& {
+ return file_store_.StorageRoot();
+ }
+
/// \brief Store blob from bytes.
/// \param bytes The bytes do create the blob from.
/// \returns Digest of the stored blob or nullopt in case of error.