Karlomikus\Theme\Commands\ThemeMakeCommand::makeThemeFolder PHP Method

makeThemeFolder() private method

private makeThemeFolder ( )
    private function makeThemeFolder()
    {
        $file = new File();
        $location = config('theme.path');
        $path = $location . DIRECTORY_SEPARATOR . $this->themeNamespace;
        if (!$file->isDirectory($path)) {
            $file->makeDirectory($path);
            $file->makeDirectory($path . DIRECTORY_SEPARATOR . 'views');
        } else {
            throw new \Exception('Theme already exists!');
        }
    }