[
https://issues.apache.org/jira/browse/CAMEL-5558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633904#comment-16633904
]
ASF GitHub Bot commented on CAMEL-5558:
---------------------------------------
GitHub user onderson opened a pull request:
https://github.com/apache/camel/pull/2541
CAMEL-5558 - add file existing move strategy interface to let custom
implementations be provided and add a test case for file component
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/onderson/camel CAMEL-5558
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2541.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2541
----
commit 324ad6248686be751ab80cc6bd792345ab581e84
Author: onders <onders@...>
Date: 2018-10-01T11:44:57Z
CAMEL-5558 - add file existing move strategy interface to let custom
implementations be provided and add a test case for file component
----
> 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)