Libssh2 sftp rmdir ex

From Libssh2

int libssh2_sftp_rmdir_ex((LIBSSH2_SFTP *sftp, char *path, int path_len);
#define libssh2_sftp_rmdir(sftp, path) \
        libssh2_sftp_rmdir_ex((sftp), (path), strlen(path))

About

Remove a directory from the remote file system.

Parameters

  • sftp
    SFTP instance as returned by libssh2_sftp_init().
  • path / path_len
    Full path of the existing directory to remove.

Returns

  • On Success: 0
  • On Failure: -1