isDirectory() public method

Check if the path is a directory.
public isDirectory ( string $path ) : boolean
$path string
return boolean
Example #1
0
 /**
  * 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);
     }
 }