monitor module

HSTB.kluster.monitor Module

Functions

get_file_size(filepath)

Not exactly sure how os.stat or os.path.getsize work, but they seem to get the total allocated size of the file and return that while the file is still copying.

Classes

DirectoryMonitor(directory_path[, is_recursive])

Use watchdog to monitor the provided directory and kick off events based on the type of file system event

IntelligenceMonitorHandler(parent, patterns, ...)

Event handler for the fqpr_intelligence directory monitoring.

WatchBuffer(event, timed_func[, runtime])

Employ this thread to run the provided function every (runtime) seconds.