Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in Java FTP by (140 points)
Hello!
I'm trying to write a program that must download a directory from an FTP server.It must be made recursively, from what I understand.I used FTPFile, FileTransferClient, import com.enterprisedt.net.ftp.*;I made a listing of the directory, but I don't know the parameters in the call of the recursive method...Do I have to use URL?How can make it work?Anybody?
Thanks!

1 Answer

0 votes
by (162k points)
It is actually non-trivial to get working properly. Essentially, you have to recursively go through the directory listings and download each file.

edtFTPj/PRO (http://www.enterprisedt.com/products/ed ... rview.html) includes directory transfers so if you don't have the time or inclination to write it yourself, try downloading the trial. At the least you'll be able to see what our methods look like.

Categories

...