public function mkdir($dir) {
		$this->connectIfNeeded();
		$this->handle->mkdir($dir);
		$this->onFolderCreated(new Event(['sender' => $this, 'data' => $dir]));
	}
public function mkdir($dir) {
		$this->connectIfNeeded();
		$this->handle->mkdir($dir);
		$this->onFolderCreated(new Event(['sender' => $this, 'data' => $dir]));
	}
public function mkdir ( $ dir ) { $ this -> connectIfNeeded ( ) ; $ this -> handle -> mkdir ( $ dir ) ; $ this -> onFolderCreated ( new Event ( [ 'sender' => $ this , 'data' => $ dir ] ) ) ; }
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.
Create a new folder on FTP server .