I\'m using org.apache.commons.net.ftp.FTPClient and seeing behavior that is, well... perplexing.
The method beneath intends to go through an FTPFile list, read them
It works ok when I add after the "retrieve" command :
int response = client.getReply(); if (response != FTPReply.CLOSING_DATA_CONNECTION){ //TODO }