spring-integration icon indicating copy to clipboard operation
spring-integration copied to clipboard

Add recursive list support for remote file sessions

Open artembilan opened this issue 5 years ago • 3 comments

Something like list(String path, boolean recurse) to Session would be a good API delegated from the AbstractInboundFileSynchronizer.transferFilesFromRemoteToLocal() when we would like to deal not only with the top-level files in the remote directory, but also pull files from sub-directories.

artembilan avatar Oct 20 '20 16:10 artembilan

I am really looking forward to this feature, even though I have currently implemented recursive fetching of remote directories through a custom file synchronizer.

superlins avatar Sep 15 '23 06:09 superlins

I found mina-sshd-sftp like below, help useful! image

superlins avatar Sep 15 '23 06:09 superlins

I think you are right and we definitely can use that SftpClientDirectoryScanner in the list(String path, boolean recurse) API we propose for this fix. The pattern matching is out of scope for this feature since it is already covered by our FileListFilter API which is applied immediately after fetching remote entries in the transferFilesFromRemoteToLocal(). The FTP and SMB parts need to be investigated individually.

artembilan avatar Sep 15 '23 15:09 artembilan