handleRmd method

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

Implementation

void handleRmd(String argument, FtpSession session) {
  if (session.serverType == ServerType.readOnly) {
    session.sendResponse('550 Command not allowed in read-only mode');
  } else {
    session.removeDirectory(argument);
  }
}