stream-applications icon indicating copy to clipboard operation
stream-applications copied to clipboard

ftp-source recursive remote directory

Open borg1310 opened this issue 1 year ago • 3 comments

hi,

is it possible to configure ftp-source to recursively traverse the remote directory and transfer all files?

thanks in advance best regards, juergen

borg1310 avatar Nov 20 '24 22:11 borg1310

@artembilan may have some input around the spring-ftp-supplier.

corneil avatar Nov 21 '24 11:11 corneil

No, that functionality is not supported yet: https://github.com/spring-projects/spring-integration/issues/3407.

Only the solution available right now is a direct implementation of custom source application which would rely on the FtpOutboundGateway and its MGET command with a -R option: https://docs.spring.io/spring-integration/reference/6.3-SNAPSHOT/ftp/outbound-gateway.html#using-the-mget-command

artembilan avatar Nov 21 '24 18:11 artembilan

hi @artembilan ,

thanks for your answer. my use case is to download data from a ftp server that is located in directories sorted by year. So for now I will pursue the approach of using a dynamic remoteDirectoryExpression. (I already tested this and it works. I asked my question anyway because I can't cover all of our use cases with it)

thanks for your help best regards,

juergen

borg1310 avatar Nov 22 '24 07:11 borg1310