gorakhargosh / watchdog

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

Fix moved_records not cleaned #1076

Open ksiv opened 1 month ago

ksiv commented 1 month ago

Added separate thread to clean records from moved_events that are used for source_path acquisition with some delay for events not to get cleaned before they have a chance to be used as for source_path acquisition

Dict optimized to hold smaller object with only src_path and timestamp.

This PR supposed to deal with https://github.com/gorakhargosh/watchdog/issues/1041 And possibly partly with https://github.com/gorakhargosh/watchdog/issues/587