title: How can I rename a file placed in remote location while it is getting streamed
body: <p>I want to add some temporary suffix to file while I am streaming the file from remote directory.</p>
  
  <p>I am streaming the file from remote directory using spring integration dsl and I want to make sure that one file is getting read by single application at a time. So i am thinking to adding some temporary prefix to file while it is getting streamed. I am using outbound gateway to fetch the data.</p>
  
  <p>Any pointers will be very helpful. Currently I am renaming the file before reading and after reading, I really don`t want to do that.</p>