Unix and Linux Discussions Tagged with recursive |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
6,274 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,789 |
Shell Programming and Scripting |
|
|
|
18 |
2,989 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,964 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,805 |
Shell Programming and Scripting |
|
|
|
1 |
7,908 |
Shell Programming and Scripting |
|
|
|
3 |
2,627 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
16,524 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
10,377 |
Shell Programming and Scripting |
|
|
|
1 |
3,517 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,995 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,625 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
6,203 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
5,916 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,088 |
Shell Programming and Scripting |
|
|
|
4 |
13,379 |
UNIX for Dummies Questions & Answers |
|
|
|
52 |
373,227 |
Shell Programming and Scripting |
|
|
|
5 |
16,898 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,862 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,977 |
Solaris BigAdmin RSS |
|
|
|
10 |
10,700 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,742 |
Shell Programming and Scripting |
|
|
|
1 |
18,729 |
Cybersecurity |
|
|
|
16 |
31,820 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
60,834 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
20,106 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,277 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,959 |
IP Networking |
|
|
|
1 |
17,879 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,574 |
UNIX for Dummies Questions & Answers |
SSH2_SFTP_MKDIR(3) 1 SSH2_SFTP_MKDIR(3)
ssh2_sftp_mkdir - Create a directory
SYNOPSIS
bool ssh2_sftp_mkdir (resource $sftp, string $dirname, [int $mode = 0777], [bool $recursive = false])
DESCRIPTION
Creates a directory on the remote file server with permissions set to $mode.
This function is similar to using mkdir(3) with the ssh2.sftp:// wrapper.
PARAMETERS
o $sftp
- An SSH2 SFTP resource opened by ssh2_sftp(3).
o $dirname
- Path of the new directory.
o $mode
- Permissions on the new directory.
o $recursive
- If $recursive is TRUE any parent directories required for $dirname will be automatically created as well.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Creating a directory on a remote server
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
ssh2_sftp_mkdir($sftp, '/home/username/newdir');
/* Or: mkdir("ssh2.sftp://$sftp/home/username/newdir"); */
?>
SEE ALSO
mkdir(3), ssh2_sftp_rmdir(3).
PHP Documentation Group SSH2_SFTP_MKDIR(3)