gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.
http://packages.python.org/watchdog/
Apache License 2.0
6.53k stars 695 forks source link

Issue with Random Delete Events Being Generated #1068

Open RichardRogers1972 opened 2 weeks ago

RichardRogers1972 commented 2 weeks ago

Hi, I've written a python app that monitors a local folder. New/modified events correctly fire when files added or modified in the watched folder structure. I've since added in some delete functionality, which also works well. However, I'm now getting a number of file deleted events being generated when some new/modified files are detected. Info on current setup: OS: Windows Server 2016 Python Version: 3.12.5 Watchdog Version: 5.0.2

On one of the recent occurrences 6495 files were created/modified and 261 delete events got generated (no files were actually deleted to raise the event).

Has anyone else had this problem? Could it be down to the "quirks" of Windows INotify? Any ideas of how to resolve and/or diagnose the cause?

Thanks, Richie