[ 
https://issues.apache.org/jira/browse/CAMEL-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635067#comment-16635067
 ] 

ASF GitHub Bot commented on CAMEL-5558:
---------------------------------------

oscerd commented on issue #2541: CAMEL-5558 - add file existing move strategy 
interface to let custom
URL: https://github.com/apache/camel/pull/2541#issuecomment-426160960
 
 
   Merged on master

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Add fileExist option to write file with a new name in case file already exists
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-5558
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5558
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, camel-ftp
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Önder Sezgin
>            Priority: Major
>             Fix For: 2.23.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Camel-FTP-component-Append-a-sequence-number-if-the-filename-already-exists-tp5718469.html
> We should allow to configure fileExists=RenameAndRetry option, which allows 
> you to rename the file and retry writing the file again, in case there 
> already exists a file. 
> The trick is to find a optimal solution if  you append a sequence number to a 
> file. And when there is a lot of files. You kinda want to know what is the 
> highest filename, (some way of listing and sorting). 
> Maybe a way to get a list of existing files based on a file name pattern, and 
> a sort configuration. Then people can check in the list, to find a free 
> sequence number to use etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to