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

getPathOfFileNodeToTarget() protected method

protected getPathOfFileNodeToTarget ( SimpleXmlElement $node, string $path = '' ) : string
$node SimpleXmlElement
$path string
return string
    protected function getPathOfFileNodeToTarget($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);
    }