private function createDirectory(string $directory, int $mode): bool {
    $auth = false;
    if (is_dir($directory)) {
      $auth = true;
    } else {
      @mkdir($directory, $mode, true);
    }
    @chmod($directory, $mode);
    return is_dir($directory);
  }
private function createDirectory(string $directory, int $mode): bool {
    $auth = false;
    if (is_dir($directory)) {
      $auth = true;
    } else {
      @mkdir($directory, $mode, true);
    }
    @chmod($directory, $mode);
    return is_dir($directory);
  }
private function createDirectory ( string $ directory , int $ mode ) : bool { $ auth = false ; if ( is_dir ( $ directory ) ) { $ auth = true ; } else { @ mkdir ( $ directory , $ mode , true ) ; } @ chmod ( $ directory , $ mode ) ; return is_dir ( $ directory ) ; }
- Make directory
@param string $directory Path of directory
@param int $mode Define chmod of path directory
@return bool Info if create the folder
- Make directory