WP_Filesystem_SSH2::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-ssh2.php
public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
$path = untrailingslashit($path);
if ( empty($path) )
return false;
if ( ! $chmod )
$chmod = FS_CHMOD_DIR;
if ( ! ssh2_sftp_mkdir($this->sftp_link, $path, $chmod, true) )
return false;
if ( $chown )
$this->chown($path, $chown);
if ( $chgrp )
$this->chgrp($path, $chgrp);
return true;
}