gws.server.monitor
¶
Source code: gws.server.monitor
Module Contents¶
- class gws.server.monitor.Object¶
Bases:
gws.ServerMonitor
File Monitor facility.
- enabled: bool¶
- frequency: int¶
- ignore: list[str]¶
- pathStats: dict¶
- watchDirs: dict¶
- watchFiles: dict¶
- add_directory(path, pattern)¶
Add a directory to monitor.
- Parameters:
path – Directory path.
pattern – Regex pattern for files to watch.
- add_file(path)¶
Add a file to watch.
- Parameters:
path – File path.
- configure()¶
Configuration hook.
- start()¶
Start the monitor.