diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 83a649e6084ef5366d2f3340497ec50d6e895ea8..30a946dcc3c296bfa47e11ab5288f9f455bc8896 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -476,4 +476,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
 
 		return $size;
 	}
+
+	public function getObjectStore(): IObjectStore {
+		return $this->objectStore;
+	}
 }