sftp_setstat method

int sftp_setstat(
  1. sftp_session sftp,
  2. Pointer<Int8> file,
  3. sftp_attributes attr
)

@brief Set file attributes on a file, directory or symbolic link.

@param sftp The sftp session handle.

@param file The file which attributes should be changed.

@param attr The file attributes structure with the attributes set which should be changed.

@return 0 on success, < 0 on error with ssh and sftp error set.

@see sftp_get_error()

Implementation

int sftp_setstat(
  sftp_session sftp,
  ffi.Pointer<ffi.Int8> file,
  sftp_attributes attr,
) {
  return _sftp_setstat(
    sftp,
    file,
    attr,
  );
}