title: File system watcher for Mac OS X
body: <p>Currently, we use QFileSystemWatcher, belonging to Qt. Due to the limited support in Mac OS X, it can only notify us two events: directory changed, or file changed.</p>
  
  <p>However, the latter event (file changed) is triggered multiple times when its size is slightly larger and the writing to disk takes slightly longer time.</p>
  
  <p>Our workaround is to set up a timer to check the file in 1 second. If more signals about the file come before timer expires, we reset the timer.</p>
  
  <p>Is there a way to get the notification when the file is written to the disk (finished writing)?  There is no need to limit to Qt, any library could do.</p>
  
  <hr>
  
  <p>We are aware of the kqueue monitoring method, but that's too low level and we don't want to do that for each file, as we are monitoring a large portion of the file system..</p>