WP_Filesystem_FTPext::mkdir() – Creates a directory.
You appear to be a bot. Output may be restricted
Description
Creates a directory.
Usage
$bool = WP_Filesystem_FTPext::mkdir( $path, $chmod, $chown, $chgrp );
Parameters
- $path
- ( string ) required – Path for new directory.
- $chmod
- ( int|false ) optional – Optional. The permissions as octal number (or false to skip chmod). Default false.
- $chown
- ( string|int|false ) optional – Optional. A user name or number (or false to skip chown). Default false.
- $chgrp
- ( string|int|false ) optional – Optional. A group name or number (or false to skip chgrp). Default false.
Returns
bool True on success, false on failure.
Source
File name: wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php
Lines:
1 to 15 of 15
public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { $path = untrailingslashit( $path ); if ( empty( $path ) ) { return false; } if ( ! ftp_mkdir( $this->link, $path ) ) { return false; } $this->WP_Filesystem_FTPext::chmod( $path, $chmod ); return true; }