Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in Java FTP by (320 points)
I want to connect to a linux ftp server which does not support normal FTP.
The server only supports FTP over SSH. I tried to connect to server using the sample codes provided with edtFTPj/PRO. The program could connect, put and get files to and from the sever. The files are put in FTP root folder.

I need to put files in a separate directory under FTP root directory. I tried using
ftp.changeDirectory(dir);

But it is not available in SSHFTPClient().

How can I put the files to a subdirectory in FTP root.

Thanks in Advance

1 Answer

0 votes
by (162k points)
ftp.chdir(dir)

Categories

...