Someone has asked:
Subsequent to a call to ftp.connect (), I made the following call: ftp.getlastValidReply (). This call returned null. Why would it do that? I'm sure the server is replying to the connect attempt so why am I unable to view the response?
Looking at the code, currently the initial connection setup doesn't record the last valid reply - this only occurs for subsequent FTP requests, i.e. from login onwards.
If you look at replies from login() onwards it should never be null.
We'll take a look at changing this so that all replies are recorded.