public function getOutputDirectory()
{
$path = '';
if ($this->ctx->parentNode->hasAttribute('output')) {
$path = $this->ctx->parentNode->getAttribute('output', 'docs');
}
if ($this->ctx->hasAttribute('output')) {
if ($path != '') {
$path .= '/';
}
$path .= $this->ctx->getAttribute('output');
}
return new FileInfo($path);
}