From 030c0277a918a86d34e082ce4a1dea4c721b98d1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 10 Oct 2012 15:06:19 -0700 Subject: [PATCH] [FileBackend] Added tiny getContainerStoragePath() convenience function. Change-Id: Icc16c75f0cbfcf247628d0649386e52f1f25d335 --- includes/filebackend/FileBackend.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/filebackend/FileBackend.php b/includes/filebackend/FileBackend.php index 1136fc2816..0ef4cd0131 100644 --- a/includes/filebackend/FileBackend.php +++ b/includes/filebackend/FileBackend.php @@ -1073,6 +1073,17 @@ abstract class FileBackend { return "mwstore://{$this->name}"; } + /** + * Get the storage path for the given container for this backend + * + * @param $container string Container name + * @return string Storage path + * @since 1.21 + */ + final public function getContainerStoragePath( $container ) { + return $this->getRootStoragePath() . "/{$container}"; + } + /** * Get the file journal object for this backend * -- 2.20.1