//-------------------------------------------------------------------------
protected void connect(SocketClient client) throws Exception {
FTPClient ftp = (FTPClient) client;
if (config != null) {
ftp.configure(config);
}
super.connect(client);
int code = ftp.getReplyCode();
if (!FTPReply.isPositiveCompletion(code)) {