sftp_stat method

sftp_attributes sftp_stat(
  1. sftp_session session,
  2. Pointer<Int8> path
)

@brief Get information about a file or directory.

@param session The sftp session handle. @param path The path to the file or directory to obtain the information.

@return The sftp attributes structure of the file or directory, NULL on error with ssh and sftp error set.

@see sftp_get_error()

Implementation

sftp_attributes sftp_stat(
  sftp_session session,
  ffi.Pointer<ffi.Int8> path,
) {
  return _sftp_stat(
    session,
    path,
  );
}