src/Console/InitCommand.php
protected function dirExists($dir)
    {
        if ($this->files->exists($dir)) {

            if ( ! $this->files->isDirectory($dir)) {
                throw new RuntimeException("The given directory [$dir] is not a directory.");
            }

            return true;
        }

        return false;
    }
protected function dirExists($dir)
    {
        if ($this->files->exists($dir)) {

            if ( ! $this->files->isDirectory($dir)) {
                throw new RuntimeException("The given directory [$dir] is not a directory.");
            }

            return true;
        }

        return false;
    }
protected function dirExists ( $ dir ) { if ( $ this -> files -> exists ( $ dir ) ) { if ( ! $ this -> files -> isDirectory ( $ dir ) ) { throw new RuntimeException ( "The given directory [$dir] is not a directory." ) ; } return true ; } return false ; }
Check if a directory exists.

@param string $dir
@return bool
Check if a directory exists .