ssh2_sftp_mkdir()
ssh2_sftp_mkdir - Create a directory
Syntax
bool ssh2_sftp_mkdir (
resource $sftp,
string $dirname,
int $mode,
bool $recursive)
Arguments
- sftp - An SSH2 SFTP resource opened by ssh2_sftp().
- dirname - Path of the new directory.
- mode - Permissions on the new directory.
- recursive - If recursive is TRUE any parent directories required for dirname will be automatically created as well.
Description
Creates a directory on the remote file server with permissions set to mode.
Version
PHP PECL ssh2 >= 0.9.0
Return value
Returns TRUE on success or FALSE on failure.