public function getLocalFolder()
{
// what are we doing?
$log = usingLog()->startAction("get local folder for host '{$this->args[0]}'");
// make sure we have valid host details
$hostDetails = $this->getHostDetails();
// does it have a folder defined?
if (isset($hostDetails->dir)) {
$retval = $hostDetails->dir;
} else {
$retval = getcwd();
}
// all done
$log->endAction($retval);
return $retval;
}