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.

Reply via email to