handleStru method

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

Implementation

void handleStru(String argument, FtpSession session) {
  if (argument.isEmpty) {
    session.sendResponse('501 Syntax error in parameters');
    return;
  }
  if (argument.toUpperCase() == 'F') {
    session.sendResponse('200 Structure set to File');
  } else {
    session.sendResponse('504 Structure not supported');
  }
}