Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
If you do a:
from("file://inbox?recursive=true").to("file:outbox");
Then the files stored in the outbox will have exact same folder structure as the inbox, eg
outbox/hello.txt outbox/sub/bye.txt outbox/foo/bar/baz.txt
We should add a flattern option, so you can do:
from("file://inbox?recursive=true&flattern=true").to("file:outbox");
So the files is stored as:
outbox/hello.txt outbox/bye.txt outbox/baz.txt
We could introduce somekind of API for the flattern so end users can provide their own impl. to compute a filename they like.