Given /certain/path/ on a FreeBSD system, I would like python to use kqueue to detect if any files are created or deleted anywhere under that path.
How would I do this?
You can try the watchdog package which in turn uses kqueue on BSD (and inotify on Linux, etc.)