The fileExist=Append option on the Camel File component not working in Fuse

Solution Verified - Updated -

Issue

  • Create below route which should append the content of all the files of inbox to test_output.txt but It's overriding the file with the content of last file present in inbox
<route id="fileAppend">
   <from uri="file:/path/inbox" />
   <setHeader headerName="Exchange.FILE_NAME" id="_setHeader1">
      <constant>test_output.txt</constant>
   </setHeader>
    <to uri="file:/path/outbox?fileExist=Append" />
</route>

Environment

  • Red Hat Fuse
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content