This content has been marked as final. Show 3 replies
The problem seems to be from the parser , I suppose that because when I look at the result of a connection to a Windows environment, it list all the files and folders BUT connectiong to a Unix environment, it also list the "." and ".." as directories. I believe the problem is from there but I still don't know how to fix that.
Anyone ever faces that?
Thanks in advance,
Trying and trying, I found that:
Now instead of returning a ParserInitializationException it returns me that an empty array of object. I've tried many folder and even the root but it always return me nothing.
FTPClientConfig config = new FTPClientConfig(FTPClientConfig.SYST_UNIX); configure(config); files = listFiles(remoteFolder);
By the way, my class extends org.apache.commons.net.ftp.FTPClient.
Please, anyone, I'm sure someone has faced that before.
I've finally resolved the problem. The IBM 4690 needs a special parser in order to use the "listFiles()" method.
If anyone needs the parser, feel free to contact me.