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

Add option to file/ftp producer to move any existing file before writing

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.1, 2.11.0
    • camel-core, camel-ftp
    • None
    • Unknown

    Description

      See nabble
      http://camel.465427.n5.nabble.com/File-Component-Rename-an-existing-file-tp5716075.html

      We should add new moveExisting enum to fileExist option, so end user can configure Camel to move any existing file before writing a new file.

      That would need a corresponding option to set the expression for the new name to use.

      For example to append .old to the existing name
      moveExisting=${file:name}.old

      The trick would be if there is already an .old file. In that case Camel should fail with an exception.

      Attachments

        1. CAMEL-5521.patch
          10 kB
          santosh joshi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: