I tried that but does not work either. Here is a code snippet:
.........................
........................
ftp = new FTPClient();
ftp.setRemoteHost(host);
FTPMessageCollector listener = new FTPMessageCollector();
ftp.setMessageListener(listener);
ftp.connect();
ftp.login(user, password);
ftp.setConnectMode(FTPConnectMode.PASV);
ftp.setType(FTPTransferType.ASCII);
System.out.println("PWD: " +ftp.pwd());
FTPFile[] fg = ftp.dirDetails("");
System.out.println("COUNT: " +fg.length);
for(int j=0; j < fg.length; j++)
{
System.out.println("IF DIRECTORY: "+fg[j].isDir());
}
System.out.println("SYSTEM: "+ftp.system() );
String[] files = ftp.dir();
for (int i = 0; i < files.length; i++)
{
byte[] by = ftp.get(files[i]);
System.out.println("Name: "+files[i]+", Size: "+by.length);
}
...............................
...............................
And here is the output I see for the above:
PWD: (TESTUSR) ON TECH01
COUNT: 0
SYSTEM: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)
Name: TESTING_TXT, Size: 7
Name: TESTING_200611101044, Size: 0
Name: TESTING_200611091422, Size: 0
Name: TESTING_200611091451, Size: 0
Name: TESTING_200611141635, Size: 22506
Name: TESTING_200611101044, Size: 119040
Name: TESTING_200611091422, Size: 7185180
Name: TESTING_200611091451, Size: 7626
Any work arround. Thanks