Is there a way to read all the contents of a directory, using LIBSSH2_SFTP
, rather than file by file, as with the calls:
SFTPHandle = libssh2_sftp_opendir(SFTP, Dir.c_str());
libssh2_sftp_readdir_ex(SFTPHandle, buffer, sizeof(buffer), longentry, sizeof(longentry), &attributes);
This call, readdir, only returns a single file at a time. I just want an array or a string list that returns all the directory's contents so I can just parse through that. I don't care about the file handles, just the contents and filenames.
Aucun commentaire:
Enregistrer un commentaire