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