Reputation: 324
I am reading a zip file using file inbound connector in mule. The file should be auto deleted, since auto delete is true. But it's not. The flow I have is
<file:connector name="File" writeToDirectory="D:\FileProcessed\ringmoved\" readFromDirectory="D:\FileProcessed\" autoDelete="true" streaming="true" validateConnections="true" doc:name="File"/>
<flow name="filFlow">
<file:inbound-endpoint path="D:\FileProcessed\" moveToDirectory="D:\FileProcessed\moved\" connector-ref="File" responseTimeout="10000" doc:name="File"/>
<logger message="hi" level="INFO" doc:name="Logger"/>
</flow>
Upvotes: 0
Views: 87
Reputation: 11606
It's because you are not consuming the file. Try adding a transformer such as
<object-to-string-transformer />
after the file endpoint.
Upvotes: 1