0
votes

Our application will be reading and writing files to FTP folder with directory structure {date}/{usercode}/*. We are trying to use sftp inbound adapter.

<int-sftp:inbound-channel-adapter
        id="sftpInboundAdapter"
        channel="filesIn"
        filename-pattern="*.xml"
        session-factory="sftpSessionFactory"
        remote-directory="file:${fileserver.input.path}"
        local-directory="file:${fileserver.output.path}"
        delete-remote-files="false"
</int-sftp:inbound-channel-adapter>

is there a way to set custom directory scanner for sftp inbound adapter?

1

1 Answers

0
votes

Using a custom scanner is not currently supported.

As a work-around, you can set the ouput-channel to "nullChannel" and configure a separate <int-file:inbound-channel-adapter/> with a custom scanner.