ftp = new FTPClient(destinationFTPHost);
FTPMessageCollector listener = new FTPMessageCollector();
ftp.setMessageListener(listener);
ftp.login(userName, password);
ftp.setConnectMode(FTPConnectMode.PASV); // ftp.setConnectMode(FTPConnectMode.PASV);
ftp.setType(FTPTransferType.ASCII); // ftp.setType(FTPTransferType.ASCII);
System.out.println("***** FTP Sever Connection is Opening *****");
String[] downLoadFilesList = ftp.dir("c:/wasapps/common/daily/", false); // problem
for (int i = 0; i < downLoadFilesList.length; i++) {
System.out.println("***** dir[i] =====> " + downLoadFilesList[i]);
}