public function rmdir($dir) {
		$this->connectIfNeeded();
		$this->handle->rmdir($dir);
		$this->onFolderDeleted(new Event(['sender' => $this, 'data' => $dir]));
	}
public function rmdir($dir) {
		$this->connectIfNeeded();
		$this->handle->rmdir($dir);
		$this->onFolderDeleted(new Event(['sender' => $this, 'data' => $dir]));
	}
public function rmdir ( $ dir ) { $ this -> connectIfNeeded ( ) ; $ this -> handle -> rmdir ( $ dir ) ; $ this -> onFolderDeleted ( new Event ( [ 'sender' => $ this , 'data' => $ dir ] ) ) ; }
Removes a folder on FTP server.

@param string    $dir           Folder to delete from server (relative or absolute path).

@throws FtpException If folder deletion failed.
Removes a folder on FTP server .