Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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.