private function getAbsolutePath($path)
{
if ('./' === substr($path, 0, 2)) {
$path = getcwd() . '/' . substr($path, 2);
} elseif ('/' !== substr($path, 0, 1)) {
$path = getcwd() . '/' . $path;
}
return $path;
}