You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/08/10 11:33:45 UTC
[jira] [Updated] (CAMEL-9067) File consumer - Allow to filter by
expression and have two options one for directory and another for file name
[ https://issues.apache.org/jira/browse/CAMEL-9067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-9067:
-------------------------------
Description:
See nabble
http://camel.465427.n5.nabble.com/smb-endpoint-modified-files-not-copied-to-destination-tp5770499p5770521.html
People who want to consume from a directory using today as timestamp need to write a custom filter java impl to do so.
We have a bunch of include/antInclude etc options today but they are regex/ant based.
We should have a way of using an expression (simple language) so you can filter such as
{code}
filterDirectory=${date:now:yyyyMMdd}&filterFile=${file:ext} == 'xml' && ${file:size} > 20000
{code}
was:
See nabble
People who want to consume from a directory using today as timestamp need to write a custom filter java impl to do so.
We have a bunch of include/antInclude etc options today but they are regex/ant based.
We should have a way of using an expression (simple language) so you can filter such as
{code}
filterDirectory=${date:now:yyyyMMdd}&filterFile=${file:ext} == 'xml' && ${file:size} > 20000
{code}
> File consumer - Allow to filter by expression and have two options one for directory and another for file name
> --------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-9067
> URL: https://issues.apache.org/jira/browse/CAMEL-9067
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/smb-endpoint-modified-files-not-copied-to-destination-tp5770499p5770521.html
> People who want to consume from a directory using today as timestamp need to write a custom filter java impl to do so.
> We have a bunch of include/antInclude etc options today but they are regex/ant based.
> We should have a way of using an expression (simple language) so you can filter such as
> {code}
> filterDirectory=${date:now:yyyyMMdd}&filterFile=${file:ext} == 'xml' && ${file:size} > 20000
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)