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 587231013D for ; Wed, 5 Mar 2014 16:47:17 +0000 (UTC) Received: (qmail 31289 invoked by uid 500); 5 Mar 2014 16:47:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31255 invoked by uid 500); 5 Mar 2014 16:47:14 -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 31055 invoked by uid 99); 5 Mar 2014 16:47:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 16:47:10 +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 (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-ig0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 16:47:05 +0000 Received: by mail-ig0-f172.google.com with SMTP id uq10so8197074igb.5 for ; Wed, 05 Mar 2014 08:46:44 -0800 (PST) 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; bh=n6/Tqp+tNb8wjvQGW2X3UUxZxXjf7J0dfsu2BvE6YpI=; b=AWDd4kQ5NK/bQfqObfFO2BkyCnV9U3Psk7lX/N5T+axgPL6Orv4h7i4CT0YzeEQVRu dCY33EBouIKtUX8zFAKTykmWzgDp/8QuxqrgEcP5Ek6ebm9xx4TwuWLlhk1/Q3Cn0hHG fRa6r6oSasuFaPCd0Lzu2SXkh3S6SwB8nRDtyZiqK3itGBvEKrurbqy2JLzPx9LWYrzG WFtExCwp8SzU4QFQPjWT2go2AUSQckJaP2YLf4hLZ6M/NQZD5IFaPDq+kVxZ5fwssUW5 nWRmtDepW1PSi46AmtKKUwX5KOHySMxOiYS1JTgCjxYugavUksrPJka0KGKOog025xYz JWrA== X-Received: by 10.50.45.100 with SMTP id l4mr36395551igm.27.1394038004805; Wed, 05 Mar 2014 08:46:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.147.69 with HTTP; Wed, 5 Mar 2014 08:46:24 -0800 (PST) In-Reply-To: <1394037219857-5748344.post@n5.nabble.com> References: <1394037219857-5748344.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 5 Mar 2014 17:46:24 +0100 Message-ID: Subject: Re: How to prevent ftp from creating ID- file? To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You route has 2 inputs, remove the direct:moveUpload so it only has one. Its when you call that input the file name is empty and you get that empty file with the message id as its name. On Wed, Mar 5, 2014 at 5:33 PM, mister blinky wrote: > I have a route that uploads files in a directory to a remote server. It > determines *what* and *where* to upload at runtime using properties, so it > uses a recipientlist. > > from("direct:moveUpload") > .log("@@@ MoveUpload: Using properties: " + propsId) > .from("file://{{move.from.dir}}?noop=true") > > .recipientList(simple("ftp://{{move.to.user}}@{{move.to.host}}/{{move.to.dir}}?password={{move.to.pwd}}")) > > So it copies all the files in the move.from.dir directory to the server as > expected, but it also creates an empty file > ID--59340-1394036464705-0-1. I don't want this empty file. > > From reading the doc, it would seem to be created by the file component when > CamelFileName is null. But why would any file in this directory be unnamed? > There are no hidden files. All the files are properly transferred, but this > ID- file gets generated and then transferred as well. > > How can i prevent ftp from creating that empty ID- file? > > thank you. > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-prevent-ftp-from-creating-ID-file-tp5748344.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io