summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/file_storage.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/file_storage.hpp')
-rw-r--r--src/buildtool/file_system/file_storage.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/file_system/file_storage.hpp b/src/buildtool/file_system/file_storage.hpp
index 922cbc54..488274a5 100644
--- a/src/buildtool/file_system/file_storage.hpp
+++ b/src/buildtool/file_system/file_storage.hpp
@@ -70,6 +70,10 @@ class FileStorage {
return storage_root_ / id.substr(0, 2) / id.substr(2, id.size() - 2);
}
+ [[nodiscard]] auto StorageRoot() const noexcept -> std::filesystem::path {
+ return storage_root_;
+ }
+
private:
static constexpr bool kFdLess{kType == ObjectType::Executable};
std::filesystem::path storage_root_{};