Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 73512 invoked from network); 11 Mar 2009 11:44:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 11:44:02 -0000 Received: (qmail 37897 invoked by uid 500); 11 Mar 2009 11:44:02 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 37801 invoked by uid 500); 11 Mar 2009 11:44:01 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 37790 invoked by uid 500); 11 Mar 2009 11:44:01 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 37787 invoked by uid 99); 11 Mar 2009 11:44:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 04:44:01 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 11:44:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C12F1234C041 for ; Wed, 11 Mar 2009 04:43:40 -0700 (PDT) Message-ID: <2037480538.1236771820789.JavaMail.jira@brutus> Date: Wed, 11 Mar 2009 04:43:40 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-1439) Camel VFS - Add a flattern option to allow consumers to slurp files recursively but yet again present it as a file with no relative paths In-Reply-To: <2087494089.1236596619850.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-1439. -------------------------------- Resolution: Fixed Committed revision 752427. > Camel VFS - Add a flattern option to allow consumers to slurp files recursively but yet again present it as a file with no relative paths > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-1439 > URL: https://issues.apache.org/activemq/browse/CAMEL-1439 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.0.0 > > > If you do a: > {code} > from("file://inbox?recursive=true").to("file:outbox"); > {code} > Then the files stored in the outbox will have exact same folder structure as the inbox, eg > {code} > outbox/hello.txt > outbox/sub/bye.txt > outbox/foo/bar/baz.txt > {code} > We should add a flattern option, so you can do: > {code} > from("file://inbox?recursive=true&flattern=true").to("file:outbox"); > {code} > So the files is stored as: > {code} > outbox/hello.txt > outbox/bye.txt > outbox/baz.txt > {code} > We could introduce somekind of API for the flattern so end users can provide their own impl. to compute a filename they like. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.