Hi

Try setting something like "f/**" or "**/f/**" to exclude any f directories.




On Thu, Sep 29, 2011 at 12:20 PM, lenp
<[email protected]> wrote:
> Camel 2.8.1
>
> Using FTP endpoint that should recursively find all xml-files, but not look
> into a specific directory.
>
> Scenario:
> Parent dir: /a/b/c
>
> There we find directories d, e, f, g and h. Each of them having sub
> directories with files.
>
> Directory f am I not allowed to take files from. How do I configure filter
> includes and excludes? I thought it would go as below:
>
> Preparing the filter:
>                AntPathMatcherGenericFileFilter filter = new
> AntPathMatcherGenericFileFilter();
>                filter.setIncludes("**/*.xml");
>                filter.setExcludes("f");
>
> and the endpoint:
> ftp://user@host//a/b/c?filter=#filter&password=******&recursive=true
>
> But TRACE tells me that it do look into directory f anyway...
>
> thanks,
>
> /L
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Need-help-on-using-Ant-path-matcher-tp4852531p4852531.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to