title: Directory monitoring using fswatch
body: <p>I am using fswatch to monitor a directory and run a script when video files are copied into that directory:</p>
  
  <pre><code>fswatch -o /Path/To/Directory/Directory | xargs -n 1 sh /Path/To/Script/Script.sh
  </code></pre>
  
  <p>The problem is that the file is often not completed its copy before the script is actioned. The files are video files of varying size. Small files are OK, larger files are not.</p>
  
  <p>How can I delay the fswatch notification until the file has completed its copy?</p>