setStat method

Future<void> setStat(
  1. String path,
  2. SftpFileAttrs attrs
)

Sets the attributes of the file at path.

Implementation

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