Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9067

File consumer - Allow to filter by expression and have two options one for directory and another for file name

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      See nabble
      http://camel.465427.n5.nabble.com/smb-endpoint-modified-files-not-copied-to-destination-tp5770499p5770521.html

      People who want to consume from a directory using today as timestamp need to write a custom filter java impl to do so.

      We have a bunch of include/antInclude etc options today but they are regex/ant based.

      We should have a way of using an expression (simple language) so you can filter such as

      filterDirectory=${date:now:yyyyMMdd}&filterFile=${file:ext} == 'xml' && ${file:size} > 20000
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: