sshj
sshj copied to clipboard
SFTP Get All Files In Directory?
It is possible to get all files from the remote directory with one command. Get seems to only support one file at a time.
Using SftpFileTransfer.download
you can also supply a directory, the code then ensures that each file in that directory is transferred.
I need to transfer all files from a directory which match a pattern such as *.xml - can this method be adapted to do that ?