spring-bootapache-camel

Read files from sub-folders using camel ftp


Is it possible to read files from sub-folders using Camel-ftp? ex. i connect to an ftp server like

sftp://xxx:22/ftp?

In this i might have an sub-folder structure like /ftp/test/...

Can camel read files under the sub-folders? I tried to do, but camel doesn't seem to read from sub-folders


Solution

  • Try using recursive=true.

    FTP and SFTP endpoints extend GenericFileEndpoint and have the same properties like File endpoint