I have a path that divides large files into smaller all the split files should be written in the same directory. The default behavior of file endpoint always overwrites whether the file maker is an easy way to change a simple name to rename the file? Like in OS, if you copy / paste on a file and automatically changes the name by adding OS (copy-1 ...).
You can use Splitter Camspace index property and in this route the manufacturer's filename option is a simple You can add segmentation indices using expressions.
From ("file: data / inbox?") .split (body (String.class) .tokenize ("\ n") .to ("file: data / outbox /? Filename = $ {File: name.noext} - $ {property.camelSplitIndex} .csv ");
Therefore a 4 line input CSV test. For CSV, the output will be produced
test-0.csv test-1.csv test-2.csv test-3 csv
For details about the split index, take a look at
and
Comments
Post a Comment