If you do not want to pay for the overhead, I recommend inotify-tools. They have Python bindings too: https://github.com/seb-m/pyinotify
If you do not want to pay for the overhead, I recommend inotify-tools. They have Python bindings too: https://github.com/seb-m/pyinotify