Libssh2 sftp mkdir ex
From Libssh2
int libssh2_sftp_mkdir_ex((LIBSSH2_SFTP *sftp, char *path, int path_len, long mode); #define libssh2_sftp_mkdir(sftp, path, mode) \ libssh2_sftp_mkdir_ex((sftp), (path), strlen(path), (mode))
[edit]
About
Create a directory on the remote file system.
[edit]
Parameters
- sftp
- SFTP instance as returned by libssh2_sftp_init().
- path / path_len
- Full path of the new directory to create. Note that the new directory's parents must all exist priot to making this call.
- mode
- Directory creation mode (e.g. 0755)
[edit]
Returns
- On Success: 0
- On Failure: -1
