/**
* Returns the full path of an item.
*
* @param string $path The directory of the item.
* @param string $name The name of the item.
*
* @return mixed Full path to the file when $path is not empty and just
* $name when not set.
*/
protected function _getPath($path, $name)
{
if (isset($this->_params['vfsroot']) && strlen($this->_params['vfsroot'])) {
if (strlen($path)) {
$path = $this->_params['vfsroot'] . '/' . $path;
} else {
$path = $this->_params['vfsroot'];
}
}
return parent::_getPath($path, $name);
}