title: How to know whether a file copying is 'in progress'/complete in java (1.6)
body: <p>I am writing a directory monitoring utility in java(1.6) using polling at certain intervals using <code>lastModified</code> long value as the indication of change. I found that when my polling interval is small (seconds) and the copied file is big then the change event is fired before the actual completion of file copying.</p>
  
  <p>I would like to know whether there is a way I can find the status of file like in transit, complete etc.</p>
  
  <p>Environments: Java 1.6; expected to work on windows and linux.</p>