Is there any API for using FTP in java? Can anyone share me the sample Java FTP code?
There are many FTP client in Java. But I think you should use FTPClient, which is free. It can be downloaded from the apache website.
View examples of Java FTP at:
See this also List all directories on FTP Server