Uploaded image for project: 'Camel'
  1. Camel
  2. 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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0-M1
    • camel-core
    • None

    Description

      If you do a:

      from("file://inbox?recursive=true").to("file:outbox");
      

      Then the files stored in the outbox will have exact same folder structure as the inbox, eg

      outbox/hello.txt
      outbox/sub/bye.txt
      outbox/foo/bar/baz.txt
      

      We should add a flattern option, so you can do:

      from("file://inbox?recursive=true&flattern=true").to("file:outbox");
      

      So the files is stored as:

      outbox/hello.txt
      outbox/bye.txt
      outbox/baz.txt
      

      We could introduce somekind of API for the flattern so end users can provide their own impl. to compute a filename they like.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: