win32file.FindFirstChangeNotification

int = FindFirstChangeNotification(pathName, bWatchSubtree , notifyFilter )

Creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified directory or subtree.

Parameters

pathName : PyUnicode

Name of directory to watch

bWatchSubtree : int

flag for monitoring directory or directory tree

notifyFilter : int

filter conditions to watch for. See win32api::FindFirstChangeNotification for details.