WP_Filesystem_SSH2::mkdir

Advertisement

Summery Summery

Creates a directory.

Syntax Syntax

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

Parameters Parameters

$path

(string) (Required) Path for new directory.

$chmod

(int|false) (Optional) The permissions as octal number (or false to skip chmod).

Default value: false

$chown

(string|int) (Optional) A user name or number (or false to skip chown).

Default value: false

$chgrp

(string|int) (Optional) A group name or number (or false to skip chgrp).

Default value: false

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-admin/includes/class-wp-filesystem-ssh2.php

	 *
	 * @since 2.7.0
	 *
	 * @param string $file  Path to file.
	 * @param int    $time  Optional. Modified time to set for file.
	 *                      Default 0.
	 * @param int    $atime Optional. Access time to set for file.
	 *                      Default 0.
	 */
	public function touch( $file, $time = 0, $atime = 0 ) {
		// Not implemented.
	}

	/**
	 * Creates a directory.
	 *
	 * @since 2.7.0
	 *
	 * @param string     $path  Path for new directory.
	 * @param int|false  $chmod Optional. The permissions as octal number (or false to skip chmod).

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.