You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/03/09 12:03:39 UTC
[jira] Created: (CAMEL-1439) Camel VFS - Add a flattern option to
allow consumers to slurp files recursively but yet again present it as a
file with no relative paths
Camel VFS - Add a flattern option to allow consumers to slurp files recursively but yet again present it as a file with no relative paths
-----------------------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-1439
URL: https://issues.apache.org/activemq/browse/CAMEL-1439
Project: Apache Camel
Issue Type: Improvement
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Priority: Minor
Fix For: 2.0.0
If you do a:
{code}
from("file://inbox?recursive=true").to("file:outbox");
{code}
Then the files stored in the outbox will have exact same folder structure as the inbox, eg
{code}
outbox/hello.txt
outbox/sub/bye.txt
outbox/foo/bar/baz.txt
{code}
We should add a flattern option, so you can do:
{code}
from("file://inbox?recursive=true&flattern=true").to("file:outbox");
{code}
So the files is stored as:
{code}
outbox/hello.txt
outbox/bye.txt
outbox/baz.txt
{code}
We could introduce somekind of API for the flattern so end users can provide their own impl. to compute a filename they like.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1439) Camel VFS - Add a flattern option to
allow consumers to slurp files recursively but yet again present it as a
file with no relative paths
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1439.
--------------------------------
Resolution: Fixed
Committed revision 752427.
> Camel VFS - Add a flattern option to allow consumers to slurp files recursively but yet again present it as a file with no relative paths
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1439
> URL: https://issues.apache.org/activemq/browse/CAMEL-1439
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.0.0
>
>
> If you do a:
> {code}
> from("file://inbox?recursive=true").to("file:outbox");
> {code}
> Then the files stored in the outbox will have exact same folder structure as the inbox, eg
> {code}
> outbox/hello.txt
> outbox/sub/bye.txt
> outbox/foo/bar/baz.txt
> {code}
> We should add a flattern option, so you can do:
> {code}
> from("file://inbox?recursive=true&flattern=true").to("file:outbox");
> {code}
> So the files is stored as:
> {code}
> outbox/hello.txt
> outbox/bye.txt
> outbox/baz.txt
> {code}
> We could introduce somekind of API for the flattern so end users can provide their own impl. to compute a filename they like.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.