Module pyinotify :: Class Watch
[hide private]
[frames] | no frames]

Class Watch

source code

Represent a watch, i.e. a file or directory being watched.

Instance Methods [hide private]
 
__init__(self, wd, path, mask, proc_fun, auto_add, exclude_filter)
Initializations.
source code
str
__repr__(self)
Returns: String representation.
source code
Method Details [hide private]

__init__(self, wd, path, mask, proc_fun, auto_add, exclude_filter)
(Constructor)

source code 

Initializations.

Parameters:
  • wd (int) - Watch descriptor.
  • path (str) - Path of the file or directory being watched.
  • mask (int) - Mask.
  • proc_fun () - Processing callable object.
  • auto_add (bool) - Automatically add watches on new directories.
  • exclude_filter (callable object) - Boolean function, used to exclude new directories from being automatically watched. See WatchManager.__init__

__repr__(self)
(Representation operator)

source code 
Returns: str
String representation.