Check if the path is a directory.
public isDirectory ( string $path ) : boolean | ||
$path | string | |
return | boolean |
/** * Initialize an empty git repo. * * @param JonathanTorres\Construct\Helpers\Git $git * * @return void */ protected function gitInit(Git $git) { if ($this->file->isDirectory($this->projectLower)) { $git->init($this->projectLower); } }