I am using org.apache.commons.net.ftp and have the following in my path:
My FTP server is on unix. Here is what I get when giving a command
on a windows command promt after connecting to the FTP Server output
I have an application that downloads the files from the above server, but I keep getting the following errors>>>>
Any idea what is wrong and how to fix it. Giving commands on command promt in windows works fine download, upload files. But when I use it through my program it gives errors. How else can get the files throgh java from FTP Server any other open source libraries available.
Q: On which server operating systems is FTPClient able to bring back a parsed listing?
A: Currently parsers have been written for UNIX, Windows, OS/2, Netware, VMS and OS400. These can be autodetected by the code without being specified. Additionally, the code correctly handles cases where NT or OS400 servers have been configured to look like unix servers. There is also a means of specifying a user-written parser by class name. All of these parsers return FTPFile objects with as much information about the file as can be gathered from the listing.
If none of these is sufficient, FTPClient.listNames() may always be called. This retrieves just the file name without other information.
(This is happening to you because the FTP specifications don't require a server to use any particular format when returning a list of files, so over the years a number of commonly-used formats have evolved. But nothing requires servers to use any of those formats except the convenience of their clients.)