public function getStoragePath() { $path = Mage::getStoreConfig(self::XML_PATH_STORAGE); $suffix = $path[strlen($path) - 1] == DS ? '' : DS; if ($path[0] == DS) { return $path . $suffix; } return Mage::getBaseDir() . DS . $path . $suffix; }