You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Önder Sezgin (JIRA)" <ji...@apache.org> on 2018/09/26 12:52:00 UTC

[jira] [Assigned] (CAMEL-5558) Add fileExist option to write file with a new name in case file already exists

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

Önder Sezgin reassigned CAMEL-5558:
-----------------------------------

    Assignee: Önder Sezgin

> 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: Future
>
>
> 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)