Libssh2 sftp close handle

From Libssh2

int libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);
#define libssh2_sftp_close(handle)       libssh2_sftp_close_handle(handle)
#define libssh2_sftp_closedir(handle)    libssh2_sftp_close_handle(handle)

About

Close an active LIBSSH2_SFTP_HANDLE. Because files and directories share the same underlying storage mechanism these methods may be used interchangably. It is recommended that libssh2_sftp_close() be used for files and that libssh2_sftp_closedir() be used for directories so that future changes in the library may cause minimal disruption.

Parameters

Returns

  • On Success: 0
  • On Failure: -1