title: OS-independent API to monitor file system?
body: <p>I would like to experiment with ideas about distributed file synchronization/replication. To make it efficient when the user is working, I would like to implement some kind of daemon to monitor changes in some directory (e.g. /home/user/dirToBeMonitored or c:\docs and setts\user\dirToBeMonitored). So, I could be able to know which filename was added/changed/deleted at every time (or within a reasonable interval).</p>
  
  <p>Is this possible with any high-medium level language?. Do you know some API (and in which language?) to do this?</p>
  
  <p>Thanks.</p>