Google\Cloud\Dev\DocGenerator\Writer::buildOutputPath PHP Method

buildOutputPath() private method

private buildOutputPath ( $currentFile )
    private function buildOutputPath($currentFile)
    {
        $pathInfo = pathinfo($currentFile);
        $servicePath = $pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.json';
        if (strpos($servicePath, '/') !== 0) {
            $servicePath = '/' . $servicePath;
        }
        $servicePath = strtolower($servicePath);
        return $this->outputPath . $servicePath;
    }