Samuel Zhao
2018-02-01 03:57:11 UTC
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
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