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, **keys)
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]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **keys)
(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.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: str
String representation.
Overrides: object.__repr__