Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
python_utils.watch_dirs.DirWatcher Class Reference
Inheritance diagram for python_utils.watch_dirs.DirWatcher:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, paths)
 
def most_recent_change (self)
 

Public Attributes

 lastrun
 
 paths
 

Private Member Functions

def _calculate (self)
 

Private Attributes

 _cache
 
 _done
 

Detailed Description

Helper to watch a (set) of directories for modifications.

Definition at line 22 of file watch_dirs.py.

Constructor & Destructor Documentation

◆ __init__()

def python_utils.watch_dirs.DirWatcher.__init__ (   self,
  paths 
)

Definition at line 25 of file watch_dirs.py.

Member Function Documentation

◆ _calculate()

def python_utils.watch_dirs.DirWatcher._calculate (   self)
private
Walk over all subscribed paths, check most recent mtime.

Definition at line 33 of file watch_dirs.py.

◆ most_recent_change()

def python_utils.watch_dirs.DirWatcher.most_recent_change (   self)

Definition at line 58 of file watch_dirs.py.

Member Data Documentation

◆ _cache

python_utils.watch_dirs.DirWatcher._cache
private

Definition at line 31 of file watch_dirs.py.

◆ _done

python_utils.watch_dirs.DirWatcher._done
private

Definition at line 28 of file watch_dirs.py.

◆ lastrun

python_utils.watch_dirs.DirWatcher.lastrun

Definition at line 30 of file watch_dirs.py.

◆ paths

python_utils.watch_dirs.DirWatcher.paths

Definition at line 29 of file watch_dirs.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:42