2

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?

David
  • 493
  • 7
  • 15

2 Answers2

1

Accordint to Python's documentation, kqueue/kevent are already supported (only on BSD, of course) "out of the box"...

Mikhail T.
  • 3,043
  • 3
  • 29
  • 46
1

You can try the watchdog package which in turn uses kqueue on BSD (and inotify on Linux, etc.)

tsundoku
  • 1,340
  • 1
  • 19
  • 24