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 1C9CA10586 for ; Thu, 29 May 2014 00:24:49 +0000 (UTC) Received: (qmail 42332 invoked by uid 500); 29 May 2014 00:24:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 42289 invoked by uid 500); 29 May 2014 00:24:48 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 60477 invoked by uid 99); 28 May 2014 17:58:19 -0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of bsurya1989@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Wed, 28 May 2014 10:57:54 -0700 (PDT) From: bsurya1989 To: users@camel.apache.org Message-ID: <1401299874190-5751664.post@n5.nabble.com> In-Reply-To: References: <1401288525153-5751658.post@n5.nabble.com> Subject: Re: sftp file exists MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thank you.. I am able to transfer the file. Consider a scenario if a file(AMSTest.txt) has to be transferred from from source(file: component) to destination(sftp: component). I am able to transfer it. Now the issue comes when I get another file with the same name AMSTest.txt file in source then, it should either override the destination(sftp: component) file with the latest one or else it should delete the file from source(file: component), if the file already exists in destination. But I am unable find the correct option supported by sftp: component which determines whether the file exists or not in the remote sftp server ? Currently I am using the following endpoint : sftp://test:test@localhost:22/sam/?stepwise=false&fileExist=Override&moveExisting=backup-of-${file:name} What kind of option does sftp: component support to find whether file exists or not ? And if it exists how can I override the destination file with latest one ? Please provide your suggestion? Thanks In Advance. Thanks and Regards, Surya. -- View this message in context: http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658p5751664.html Sent from the Camel - Users mailing list archive at Nabble.com.