You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Pierre-yves Baloche <pi...@netapsys.fr> on 2011/03/11 14:11:01 UTC

File2 Component : How to access dotted files ?

Hi all,

First, a big thumb up to the Camel team for putting up this wonderful 
technical solution.
I've discovered it not so long ago and I'm simply amazed of its 
capabilities....
now I just need time to use it to replace existing "smoky factory-type" 
codes
(.. and I'm not talking about a pattern here ;-).

For my first post here on the list, I have the following problem : I 
intend to use the file2 component
in order to modify existing files in a directory : my problem is that 
theses files' names are starting
with a dot (for example a .project file in an Eclipse environment), and 
Camel "drops" those file out of the
processing pattern.

My question is : is there a way to process "dotted files" ??

Thanks to all for your help and suggestion.

Pierre-yves


Re: File2 Component : How to access dotted files ?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Welcome to the community.

On Fri, Mar 11, 2011 at 2:11 PM, Pierre-yves Baloche
<pi...@netapsys.fr> wrote:
> Hi all,
>
> First, a big thumb up to the Camel team for putting up this wonderful
> technical solution.
> I've discovered it not so long ago and I'm simply amazed of its
> capabilities....
> now I just need time to use it to replace existing "smoky factory-type"
> codes
> (.. and I'm not talking about a pattern here ;-).
>
> For my first post here on the list, I have the following problem : I intend
> to use the file2 component
> in order to modify existing files in a directory : my problem is that theses
> files' names are starting
> with a dot (for example a .project file in an Eclipse environment), and
> Camel "drops" those file out of the
> processing pattern.
>
> My question is : is there a way to process "dotted files" ??
>

I am afraid not as skipping dot files is hardcoded into the component,
as its supposed to skip hidden files.

We could of course add some option to the component, but we should
also avoid "adding to many features" into the product.
So maybe you can tell a bit more about your use case for processing those files?


> Thanks to all for your help and suggestion.
>
> Pierre-yves
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/