Don't want to process incomplete file
I have file inbound adaptor which reads the file from directory.I am having a tool which right the files to this directory.I don't want to pick those file which has not been written in directory means tool is still writing a file it might take couple of milliseconds to completely write this file.Is there any way in SI to know that this file is under process and read it only when it's writting is complete.
<file:inbound-channel-adapter
directory="C:\\Documents and Settings\\510122\\workspace\\OdsBatch\\Abnitio"
id="picker_abnitio_reply_file" channel="reply-file-channel" >
<int:poller id="filepoller" default="true">
<int:interval-trigger interval="200" />
</int:poller>
</file:inbound-channel-adapter>