handleAcct method

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

ACCT: Provide account information (RFC 959). This server does not use accounts, so the command is accepted as superfluous. The argument is validated for non-empty syntax.

Implementation

void handleAcct(String argument, FtpSession session) {
  if (argument.isEmpty) {
    session.sendResponse('501 Syntax error in parameters');
    return;
  }
  // This server does not require account information
  session.sendResponse('202 ACCT command superfluous');
}