hedronium\Jables\commands\CreateFolder::handle PHP Method

handle() public method

public handle ( )
    public function handle()
    {
        $path = $this->app->databasePath() . '/' . config('jables.folder');
        $this->info('Checking Jables Directory...');
        if (!$this->fs->exists($path)) {
            $this->info('Creating Directory...');
            $this->fs->makeDirectory($path);
            $this->info('Directory Created.');
            return;
        }
        if (!$this->fs->isdirectory($path)) {
            $this->error("{$path} is not a directory.");
            return;
        }
        $this->info('Directory already exists.');
    }