示例#1
0
 /**
  * Return path of the current selected directory or root directory for startup
  * Try to create target directory if it doesn't exist
  *
  * @throws Mage_Core_Exception
  * @return string
  */
 public function getCurrentPath()
 {
     if (!Mage::helper('uaudio_storage')->isEnabled()) {
         return parent::getCurrentPath();
     }
     if (!$this->_currentPath) {
         $currentPath = $this->getStorageRoot();
         $node = $this->_getRequest()->getParam($this->getTreeNodeName());
         if ($node) {
             $this->_currentPath = $this->convertIdToPath($node);
         }
     }
     return $this->_currentPath;
 }