private function absolutePath($path)
    {
        if (substr($path, 0, 2) === './') {
            $path = dirname(__DIR__) . DS . substr($path, 2);
        } elseif (substr($path, 0, 1) !== '/' || substr($path, 0, 3) === '../') {
            $path = dirname(__DIR__) . DS . $path;
        }
        return rtrim($path, DS);
    }