PyInotify icon indicating copy to clipboard operation
PyInotify copied to clipboard

An efficient and elegant inotify (Linux filesystem activity monitor) library for Python. Python 2 and 3 compatible.

Results 51 PyInotify issues
Sort by recently updated
recently updated
newest added

Currently many tests are failing because event_names like "['IN_CREATE', 'IN_ISDIR']" do not garantee ordering, so the "assertEqual()" fails. This could be solved using a SET, and the result is cleaner...

**Error** ``` Traceback (most recent call last): File "../test.py", line 20, in _main() File "../test.py", line 11, in _main for event in i.event_gen(yield_nones=False): File "/home/jvlarble/.local/lib/python3.6/site-packages/inotify/adapters.py", line 307, in event_gen self._i.remove_watch(full_path,...

Which causes it to fail, if supplying a bytestring ``` AttributeError: 'bytes' object has no attribute 'encode' ``` pypi documentation just needs to be updated to current

in commit #b5735a7402f406675422f4bfa3d64c6f81814f4f starting to ignore parameter `superficial`. in function `remove_watch` should be: ```diff - self.remove_watch_with_id(wd) + self.remove_watch_with_id(wd, superficial) ```

I have reason to wait for either inotify events or stdin events and this code works: ``` observer = inotify.adapters.Inotify() observer.add_watch(b'tmp') fd = observer._Inotify__inotify_fd [r, w, x] = select.select([sys.stdin, fd],...

We might want to add support for these flags as higher-level arguments to add_watch: - IN_DONT_FOLLOW - IN_EXCL_UNLINK We should add support for doing updates to an existing watch (using...

enhancement

As the title says. Had to catch issues in two places to at least make it tolerate inaccessible directories. * `__load_trees`: catch a `PermissionError` from `os.listdir` * `add_watch`: check with...

If we get an event notification about a directory being moved and then it disappears before we have time to add a watch to it, we need to catch the...

This helps automatic license checkers like pip-licenses to identify the right license for this project

I would find it useful if `inotify` integrated with `asyncio`. Here is a quick example of what would be involved. Although I think an actual implementation should be done quite...