PhpSpec\CodeGenerator\Generator\PromptingGenerator::createDirectoryIfItDoesExist PHP Method

createDirectoryIfItDoesExist() private method

private createDirectoryIfItDoesExist ( string $filepath )
$filepath string
    private function createDirectoryIfItDoesExist($filepath)
    {
        $path = dirname($filepath);
        if (!$this->filesystem->isDirectory($path)) {
            $this->filesystem->makeDirectory($path);
        }
    }