WP_Filesystem_FTPext::mkdir( string $path, mixed $chmod = false, mixed $chown = false, mixed $chgrp = false )
Parameters
- $path
-
(Required)
- $chmod
-
(Optional)
Default value: false
- $chown
-
(Optional)
Default value: false
- $chgrp
-
(Optional)
Default value: false
Return
(bool)
Source
File: wp-admin/includes/class-wp-filesystem-ftpext.php
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->chmod($path, $chmod);
return true;
}