Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.3k views
in Java FTP by (140 points)
Hy!
I have to create a program that uploads/downloads files and folders from client to FTP server and back.I used import com.enterprisedt.net.ftp.FileTransferClient; and uploadFile(localFileName, remoteFileName);
The problem occurs when I try to upload a directory with files and folders in it.Do I have to upload it recursively or is there any command line to do that?
Thank you in advance!

1 Answer

0 votes
by (162k points)
There's not a simple way in FileTransferClient. Basically you have to do directory listings and recursively upload.

edtFTPj/PRO has a series of directory transfer methods so if you don't feel like writing the code (it is a bit tricky) then you could try it (http://www.enterprisedt.com/products/ed ... rview.html). Just FYI it is commercial, not open source.

Categories

...