relatively old (but surprisingly decent) code to watch directories and report on file CRUD