seb-m / pyinotify

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

The path of the directory beeing watched not contained in Event #160

Open eehmke opened 6 years ago

eehmke commented 6 years ago

The class Event does contain the fields path, name and pathname. However, if multiple directories are watched by multiple calls to add_watch, the information about the watched directory itself is missing. It would be helpful to provide a field like watched_path.