original_string: public function mkdir($dir) {
  		$this->connectIfNeeded();
  		$this->handle->mkdir($dir);
  		$this->onFolderCreated(new Event(['sender' => $this, 'data' => $dir]));
  	}
code: public function mkdir($dir) {
  		$this->connectIfNeeded();
  		$this->handle->mkdir($dir);
  		$this->onFolderCreated(new Event(['sender' => $this, 'data' => $dir]));
  	}
code_tokens: public function mkdir ( $ dir ) { $ this -> connectIfNeeded ( ) ; $ this -> handle -> mkdir ( $ dir ) ; $ this -> onFolderCreated ( new Event ( [ 'sender' => $ this , 'data' => $ dir ] ) ) ; }
docstring: Create a new folder on FTP server.
  
  @param string    $dir           Folder to create on server (relative or absolute path).
  
  @throws FtpException If folder creation failed.
docstring_tokens: Create a new folder on FTP server .