Hi,

Is there any way to create a route using File component which can move file
from "SRC" folder to "DST/name1/" where "name1" is a substring taken from
filename. Like in the following example:

SRC/name1_abc.txt
SRC/name1_zxc.txt
SRC/name1_qwe.txt
SRC/name2_abc.txt
SRC/name2_zxc.txt
SRC/name2_qwe.txt

to

DST/name1/abc.txt
DST/name1/zxc.txt
DST/name1/qwe.txt
DST/name2/abc.txt
DST/name2/zxc.txt
DST/name2/qwe.txt

Thanks in advance,
Greg



--
View this message in context: 
http://camel.465427.n5.nabble.com/moving-files-to-dynamically-created-subfolders-tp5784512.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to