Skip to main content
1 of 15
bosnjak
  • 8.5k
  • 2
  • 22
  • 47

You should use the Pynotify, the Python module for monitoring filesystems changes.

Here is the list of the events you can catch with it.

Since it relies on inotify and its notifications are exported from kernel space to user space, they shouldn't miss any of the event you need to capture.

bosnjak
  • 8.5k
  • 2
  • 22
  • 47