====== mkdir ====== {#JAPI Joomla.Framework Client JFTP::mkdir #} This method creates a folder on the FTP server. If the operation is successful, it returns true. Otherwise, it returns false. ===== Syntax ===== boolean mkdir ( **$path** ) | **$path** | string | is a string containing the path of the folder to create. | ===== Examples ===== jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->mkdir( 'testing' ) ) { echo "Directory successfully created!"; } else { echo "Could not create directory!"; } might produce: Directory successfully created!