gws.server.monitor

Source code: gws.server.monitor

Module Contents

class gws.server.monitor.Object

Bases: gws.ServerMonitor

File Monitor facility.

watchDirs: dict
watchFiles: dict
pathStats: dict
enabled: bool
frequency: int
ignore: list[str]
configure()

Configuration hook.

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.

start()

Start the monitor.