@param file The file which owner and group should be changed.
@param mode Specifies the permissions to use. It is modified by the
process's umask in the usual way:
The permissions of the created file are (mode & ~umask)
@return 0 on success, < 0 on error with ssh and sftp error set.
@brief Change permissions of a file
@param sftp The sftp session handle.
@param file The file which owner and group should be changed.
@param mode Specifies the permissions to use. It is modified by the process's umask in the usual way: The permissions of the created file are (mode & ~umask)
@return 0 on success, < 0 on error with ssh and sftp error set.
@see sftp_get_error()