handleDele method

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

Implementation

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