sshj icon indicating copy to clipboard operation
sshj copied to clipboard

SFTP Get All Files In Directory?

Open khamburg-dev opened this issue 5 years ago • 2 comments

It is possible to get all files from the remote directory with one command. Get seems to only support one file at a time.

khamburg-dev avatar Nov 08 '19 19:11 khamburg-dev

Using SftpFileTransfer.download you can also supply a directory, the code then ensures that each file in that directory is transferred.

hierynomus avatar Feb 19 '20 09:02 hierynomus

I need to transfer all files from a directory which match a pattern such as *.xml - can this method be adapted to do that ?

C4J avatar Jun 28 '21 21:06 C4J