sftp_readdir method

sftp_attributes sftp_readdir(
  1. sftp_session session,
  2. sftp_dir dir
)

@brief Get a single file attributes structure of a directory.

@param session The sftp session handle to read the directory entry. @param dir The opened sftp directory handle to read from.

@return A file attribute structure or NULL at the end of the directory.

@see sftp_opendir() @see sftp_attribute_free() @see sftp_closedir()

Implementation

sftp_attributes sftp_readdir(
  sftp_session session,
  sftp_dir dir,
) {
  return _sftp_readdir(
    session,
    dir,
  );
}