Recursive remote directory polling using spring integration of the inbound adapter channel SFTP file

Is it possible to recursively poll a remote directory using an inbound SFTP channel adapter, or do I need to have several inbound channels for each subdirectory.

My use case is that each tenant will have an auxiliary directory inside the download directory, where they can delete the csv files, our application should combine the download directory to find out if any tenant has new files and then upload locally. Locally, it will have the same folder structure.

Remote control:

/ downloads / tenant1 / *. Csv

/ downloads / tenant2 / *. Csv

Local:

/ downloads / tenant1 / *. Csv

/ downloads / tenant2 / *. Csv

+4
1

, poll pool.

sftp (ls) fetch (mget) .

mget .

+2

All Articles