handleStor method

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

Implementation

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