You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "santosh joshi (JIRA)" <ji...@apache.org> on 2012/08/21 05:59:38 UTC

[jira] [Updated] (CAMEL-5521) Add option to file/ftp producer to move any existing file before writing

     [ https://issues.apache.org/jira/browse/CAMEL-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

santosh joshi updated CAMEL-5521:
---------------------------------

    Attachment: CAMEL-5521.patch

patch attached
                
> Add option to file/ftp producer to move any existing file before writing
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-5521
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5521
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, camel-ftp
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5521.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira