handleType method

void handleType(
  1. String argument,
  2. FtpSession session
)

Implementation

void handleType(String argument, FtpSession session) {
  if (argument == 'A' || argument == 'I') {
    session.sendResponse('200 Type set to $argument');
  } else {
    session.sendResponse('500 Syntax error, command unrecognized');
  }
}