Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftp-source recursive remote directory #583

Open
borg1310 opened this issue Nov 20, 2024 · 3 comments
Open

ftp-source recursive remote directory #583

borg1310 opened this issue Nov 20, 2024 · 3 comments

Comments

@borg1310
Copy link

borg1310 commented Nov 20, 2024

hi,

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

thanks in advance
best regards,
juergen

@corneil
Copy link
Contributor

corneil commented Nov 21, 2024

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

@artembilan
Copy link
Member

No, that functionality is not supported yet: spring-projects/spring-integration#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

@borg1310
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants