N98\Magento\Command\MagentoConnect\ValidateExtensionCommand::_getPathOfFileNodeToTarget PHP Method

_getPathOfFileNodeToTarget() protected method

protected _getPathOfFileNodeToTarget ( SimpleXMLElemen\SimpleXMLElement $node, string $path = '' ) : string
$node SimpleXMLElemen\SimpleXMLElement
$path string
return string
    protected function _getPathOfFileNodeToTarget(SimpleXMLElement $node, $path = '')
    {
        if ($node->getName() == 'target') {
            return $this->_getBasePathFromTargetName((string) $node['name']) . $path;
        }
        $path = '/' . $node['name'] . $path;
        $parent = $this->_getParentNode($node);
        return $this->_getPathOfFileNodeToTarget($parent, $path);
    }