You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marco Collovati (Jira)" <ji...@apache.org> on 2019/11/03 13:02:00 UTC
[jira] [Commented] (CAMEL-14127) The destination File gets override
even if you set the option fileExist to Append
[ https://issues.apache.org/jira/browse/CAMEL-14127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16965663#comment-16965663 ]
Marco Collovati commented on CAMEL-14127:
-----------------------------------------
It seems the bug has been introduced in 2.20.x, by commit d8c0a53b6787778661fb4cde3c59a50b5691efac
Previous implementaion of {{writeFileByFile}} used {{prepareOutputFileChannel}} that considered {{fileExist=Append}}, whereas the new version directly does a {{Files.copy}} with {{StandardCopyOption.REPLACE_EXISTING option}}
> The destination File gets override even if you set the option fileExist to Append
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-14127
> URL: https://issues.apache.org/jira/browse/CAMEL-14127
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 3.0.0.RC3
> Reporter: Omid Dehghan
> Priority: Major
> Labels: append, file-component, fileExist, override
>
> Hi, I'm trying to append the content of a series of text files to another file with file-component using fileExist=Append but the destination file acts like it's been overrided!
> Here's how I did it:
> from("file:G:/high").to("file:G:/test?fileName=test.txt&fileExist=Append");
--
This message was sent by Atlassian Jira
(v8.3.4#803005)