Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EBF392F9 for ; Fri, 31 Aug 2012 11:53:44 +0000 (UTC) Received: (qmail 85233 invoked by uid 500); 31 Aug 2012 11:53:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 85104 invoked by uid 500); 31 Aug 2012 11:53:42 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 85035 invoked by uid 99); 31 Aug 2012 11:53:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 11:53:39 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 11:53:35 +0000 Received: by lagz14 with SMTP id z14so2667597lag.32 for ; Fri, 31 Aug 2012 04:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=lAwtt0e32VzmVCM+0uKNe0gSp6hzM12lJU0Vg6BjrbA=; b=nSiCEU0wC5ow41BSJJcyWQSZtttRQgjstNo3ygzjeLJXZiTNXEqplOGHPIBbyRqWTC q6vh+FDyLkDcsZvAGzNDYfsjEmK+f3IHp1/LXauMRnp9RwfMgIZuXpCgya/wsDzB33iG mzAGm6cW/Ut3Xf3ypPZJSbDbAPnaNmSE8elhi1Ybj8zuZ4I2GJ30virfpP/50R2ziQUf 0Nzy1PX37h5qRHfqeYWMZA0KnwhzzmTcgZK722hkRHT/6cBtYhmXCGmY2BKoQrj+HnlI +ivlByYhyyD9o/zKaUYk2vkZ4JTwXK8anwdGfkOdI7Mf7/4cYD+wNrNsiuEioOoQPxM+ h/Hw== Received: by 10.112.86.169 with SMTP id q9mr2497243lbz.65.1346413993740; Fri, 31 Aug 2012 04:53:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Fri, 31 Aug 2012 04:52:49 -0700 (PDT) In-Reply-To: <1346412503984-5718469.post@n5.nabble.com> References: <1346412503984-5718469.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 31 Aug 2012 13:52:49 +0200 Message-ID: Subject: Re: Camel FTP component: Append a sequence number if the filename already exists To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Aug 31, 2012 at 1:28 PM, domenique 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.tx= t. > 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=E9nique > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP= -component-Append-a-sequence-number-if-the-filename-already-exists-tp571846= 9.html > Sent from the Camel - Users mailing list archive at Nabble.com. --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen