开发者

Apache Camel Ftp2 order of downloaded files

How I can specify the order in which I want to pull data from ftp, for insta开发者_开发知识库nce for some folders I want to pull data in alphabetical order or numerical but for another I need to sort out it by some complex expression (parse data, define quarter and sort them out by querter) is there a way to create a sorter (filter) which will give us this flexibility?


The FTP component uses the same sorting options as the File component. So check its wiki page http://camel.apache.org/file2

For example you can use a custom sorter. See the option table for more details.

See this unit test https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileSorterRefTest.java

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜