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

Difference between del_watch and rm_watch unclear from doc #184

Open azertyfun opened 4 years ago

azertyfun commented 4 years ago

Hi,

Looking at the API Documentation, one could assume that WatchManager.del_watch does the same job as WatchManager.rm_watch, when in fact the former only deletes the watch manager's internal reference while the latter actually removes it from the inotify thread.

This is clear from the code, but when looking for a way to unregister a watch, I did not read every method in the WM doc and used the first one that (I thought) matched my requirements.