Download files recursively from a directory present on unix server to local directory by ftp using Java code

509 Views Asked by At

I need to ftp files from a directory which has many sub-directories (and in turn each directory has many other directories and files in it) from Unix server to my local machine using Java.

I tried using org.apache.commons.net.ftp.FTPClient and it.sauronsoftware.ftp4j.FTPClient to download, but I am unable to download files recursively.

Or is there any way to download the root directory itself to the local machine?

Please help me.

0

There are 0 best solutions below