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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  auto_add
  dir
  exclude_filter
  mask
  path
  proc_fun
  wd

Inherited from object: __class__

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__
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: str
String representation.
Overrides: object.__repr__