WP_Filesystem_SSH2::mkdir( string $path, mixed $chmod = false, mixed $chown = false, mixed $chgrp = false )


Parameters

$path

(string) (Required)

$chmod

(mixed) (Optional)

Default value: false

$chown

(mixed) (Optional)

Default value: false

$chgrp

(mixed) (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;
	}