seb-m / pyinotify

Monitoring filesystems events with inotify on Linux.
http://github.com/seb-m/pyinotify/wiki
MIT License
2.29k stars 379 forks source link

add support for pathlib objects, improve logging, fixes #187 #188

Open fthiery opened 4 years ago

fthiery commented 4 years ago

It would be good that pyinotify works with pathlib Path objects (see https://docs.python.org/3.8/library/pathlib.html); currently, the behaviour is that the path is silently dropped, which makes it quite hard to debug.

This MR suggests: