You can use CamelFileName property in message for this. CamelFileName
specifies the output file name (relative to the endpoint directory)
Thanks,
Sumit Teke
Omniscient Software Pvt Ltd
T. +91-20-26680814, Ext. 217
F. +91-20-26680815, Ext. 212
M. +91-9975709032
E. [email protected]
On Wednesday 09 February 2011 03:32 PM, Tom Howe wrote:
Hi, first post, loving camel! (Using with akka - akka.io).
I need to write a lot of files using camel to a directory and need to avoid
the directory getting to big.
My endpoint at the moment is just file:/to/my/dir.
It works ok, except if the harvester of these files goes down for a while
and the directory gets too many files, bad things happen!
Is there a config option that will create subdirectories below that using
random numbers to several dirs deep. eg
/to/my/dir/1/4/2/filename
Thanks, Tom