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

Claus Ibsen updated CAMEL-5558:
-------------------------------
    Fix Version/s:     (was: Future)
                   2.23.0

> 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