Some solution could probably be applicable to Windows, however I am not familiar with the Windows OS, so this will be Linux focused.
As far as I understand, Unix fil
Look into inotify which allows you to get a call when anybody does anything to files in a specified file system or directory.
inotify