| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
mkdir |
mkdir() |
Never | Work in Progress |
This method creates a folder on the FTP server. If the operation is successful, it returns true. Otherwise, it returns false.
boolean mkdir ( $path )
| $path | string | is a string containing the path of the folder to create. |
Example
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:
Result
Directory successfully created!