remove method
Remove a file whose name is filename
. This can only be used to remove
files. Use rmdir to remove a directory.
Implementation
Future<void> remove(String filename) async {
final reply = await _sendRemove(filename);
if (reply is! SftpStatusPacket) throw SftpError('Unexpected reply');
SftpStatusError.check(reply);
}