On Fri, Aug 31, 2012 at 1:28 PM, domenique <[email protected]> wrote: > Hi, > > I'm using ServiceMix 4.4.2 with Camel 2.8.5 and I'm searching if it's > possible to have the FTP component add a sequence number to a file if it > already exists on the remote location. > > So if I have an FTP directory containing : > file.txt > fileA.txt > > and I want to write file.txt to this directory, it should write file-1.txt. > ofcourse, if file-1.txt also exists, it should write file-2.txt and so on. > > Is there any way to do this using camel-ftp ? >
No But there is a new move existing option, that can move/renamed the existing file. This requires Camel 2.10.1 though. > Krgds > Doménique > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-FTP-component-Append-a-sequence-number-if-the-filename-already-exists-tp5718469.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
