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 56FBC11237 for ; Wed, 6 Aug 2014 13:34:31 +0000 (UTC) Received: (qmail 53740 invoked by uid 500); 6 Aug 2014 13:34:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 53696 invoked by uid 500); 6 Aug 2014 13:34:30 -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 53684 invoked by uid 99); 6 Aug 2014 13:34:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 13:34:30 +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.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 13:34:26 +0000 Received: by mail-ie0-f169.google.com with SMTP id rd18so2838452iec.14 for ; Wed, 06 Aug 2014 06:34:05 -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; bh=HZPHPnFe5dcGWaI9sMa5VR3E6Xq4V/QwCnWGqfGyAm4=; b=yoBdkS2uNQG0VZRthTl3zdfrCdAv4OZZLphT1PKeRj5ewjrI+/l/tS2xDrfEu4KvQ6 bWLtGE+uLIV0RywefBLMxlnX6fvYlVoOk+Vah/YxNOKTWXAtjgAyXUCWo3p0wJzGFSJW 6afwPL6oo/pPY86jABy12YjOCgYkMDNCrHuTNju5degZoB00Vi4lHThVRya3Yi1lCJnZ 81Fe4Qp8j+QX5Z7fnkj3wYTd8T+m6LHJ5ZS3wPm9vuidCESn6UKWPL/09TsLX2x2vnT7 bgqHJqrIbZyNeWGh9FjKhy8n4JKQe9MQ3BQSfdn0dmXPDLvaBBBmnzTUVI07HzMk5cfr oxPw== X-Received: by 10.50.32.73 with SMTP id g9mr59535633igi.31.1407332045569; Wed, 06 Aug 2014 06:34:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.11.67 with HTTP; Wed, 6 Aug 2014 06:33:45 -0700 (PDT) In-Reply-To: <1407319435909-5754843.post@n5.nabble.com> References: <1407258591702-5754812.post@n5.nabble.com> <1407315523555-5754831.post@n5.nabble.com> <1407319435909-5754843.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 6 Aug 2014 15:33:45 +0200 Message-ID: Subject: Re: Polling a directory for inner directories To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Aug 6, 2014 at 12:03 PM, jkir wrote: > Ok thank you Claus, do you happen to know why this isn't supported? It seems > like it should be fairly simple to enable support for and I imagine it's a > pretty common use case. If there's nothing preventing it from being included > then I could hopefully get round to writing a patch for it. > Its trickier as file/ftp etc components rely on files. So if suddenly its a directory, then many of the options do not apply for noop / delete / move / read locks / and whatnot. And the 99,98% use-case is for people to work with the files. If you want to monitor for directory creations then use some api from java. Java 7 has nio2 which has better api for that. > I guess it should have been obvious that the File Consumer was only for > files, but then I guess I was going by Java's definition of a 'File', which > includes directories. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Polling-a-directory-for-inner-directories-tp5754812p5754843.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 hawtio: http://hawt.io/ fabric8: http://fabric8.io/