setStat method

Future<void> setStat(
  1. SftpFileAttrs attrs
)

Implementation

Future<void> setStat(SftpFileAttrs attrs) async {
  _mustNotBeClosed();
  final reply = await _client._sendFSetStat(_handle, attrs);
  if (reply is! SftpStatusPacket) throw SftpError('Unexpected reply');
  SftpStatusError.check(reply);
}