
how to copy the directory in to ftp server using java ?

Hello venaktehs
As much as I know,You can do this as follows:
First,Create a directory in the current working directory with the same name (which you wish to copy) as:
issueCommand("MKD"+directoryName);
Change the working directory :
// Here "ftp" is the Object of Ftp
ftp.setDir(directoryName);
Now,if need, You can change the local directory.For example :
ftp.setLocalDir(new File("C:/tmp");
Now you can upload file in your remote directory as follows :
ftp.upload(new File("c:/tmp/test.txt"));
I Hope this Info helps you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.