title: How to induce a timedelay when transferring the file from one directory to another by using twaitforfile or custom java code?
body: <p>I am using talend to pickup file from source folder and transfer to the destination folder,however i want to pickup the file for processing only if the file is completely written in the source or not during/when the file is actively being copied into the source folder.</p>
  <p>I realize that in talend when trying to move the file from source to dest. when the file is being still written into source folder-it shows  an error message that &quot;file is still being used by another proces&quot; however i dont want that error to be triggered for each every run,i would want to skip and move to the next file in the iteration folder.</p>
  <p>Can i use  a twait or twaitforfile between components or add java code to handle it such that
  &quot;presenttime(sysdate)-filetime(arrivaltimeinto the folder)&gt;timedifference(lets say around 3-5 minutes)&quot;</p>
  <p>Only if the condition is satisfied move the file to destination folder.</p>
  <p>Please suggest which is the best efficient way to handle this.</p>