rattail.filemon.win32

File Monitor for Windows

class rattail.filemon.win32.RattailFileMonitor(args)[source]

Windows service implementation of the File Monitor.

Initialize(config)[source]

Service initialization.

rattail.filemon.win32.fallback_watcher(profile)[source]

Fallback watcher thread, to deal with any files which the primary watchers may have missed. While it doesn’t often happen, sometimes the Windows API ReadDirectoryChangesW() function can “miss” file events. The primary watchers rely on that exclusively, so this function provides a workaround to the problem. See also this Stack Overflow post.

rattail.filemon.win32.watch_directory(profile, path)[source]

Callable target for watcher threads.