diff --git a/src/watchdog/observers/inotify_c.py b/src/watchdog/observers/inotify_c.py index 6161f4f9..88f371b4 100644 --- a/src/watchdog/observers/inotify_c.py +++ b/src/watchdog/observers/inotify_c.py @@ -24,6 +24,7 @@ from functools import reduce from ctypes import c_int, c_char_p, c_uint32 from watchdog.utils import UnsupportedLibc +import time libc = ctypes.CDLL(None) @@ -259,6 +260,8 @@ def read_events(self, event_buffer_size=DEFAULT_EVENT_BUFFER_SIZE): # created subdirectories/files. This will handle # mkdir -p foobar/blah/bar; touch foobar/afile + time.sleep(0.000_01) + def _recursive_simulate(src_path): events = [] for root, dirnames, filenames in os.walk(src_path):