Subject: Question about function parameter of libssh2_sftp_readdir_ex

Question about function parameter of libssh2_sftp_readdir_ex

From: Samuel Zhao <samuelzhao_at_126.com>
Date: Thu, 1 Feb 2018 11:57:11 +0800

Hi all,
Here is the function:
int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle, char *buffer, size_t buffer_maxlen, char *longentry, size_t longentry_maxlen, LIBSSH2_SFTP_ATTRIBUTES *attrs);
From man page description, buffer and longentry seem to both recv the file name from ftp server. What's the difference between them?
If I want to get a file list by 'ls' command in ftp client, which one should I read file name from?

Thanks for any help.
 


Samuel Zhao

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2018-02-01