资 源 简 介
A Python module which provides a very thin layer binding to inotify API supporting both blocking and non-blocking operation.
It added 2 new function calls get_event() and close() apart from the direct binding to inotify API. get_event() provides a C-layer read()-ing and translating inotify events into Python dictionary. close() provides a C-layer close() function callto inotify instance file descriptor.
On top of that, this module attempts to throw Python exception on error and exposes a Python dictionary INOTIFY_MASKS to facilitate translating the event mask in the event dictionary.