rmdir method
Removes a directory whose name is dirname
. This can only be used to
remove directories. Use remove to remove a file.
This will fail if the directory is not empty.
Implementation
Future<void> rmdir(String dirname) async {
final reply = await _sendRemoveDir(dirname);
if (reply is! SftpStatusPacket) throw SftpError('Unexpected reply');
SftpStatusError.check(reply);
}