method getLogTree documentation in bbn\Cron\Common
function(array $cfg, bool $error = false)
{
$fs = new bbn\File\System();
$fpath = !empty($cfg['fpath']) ? $cfg['fpath'] . '/' : '';
if (($path = $this->getLogPath($cfg, $error, true)) && $fs->isDir($path.$fpath)) {
$fs->cd($path.$fpath);
$dirs = array_reverse($fs->getFiles('./', true, true, null, 'cts'));
foreach ( $dirs as &$t ){
$t['numChildren'] = $t['num'] ?? 0;
$t['fpath'] = $fpath . $t['name'];
if ( isset($t['num']) ){
unset($t['num']);
}
}
return $dirs;
}
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions