gio.FileMonitor — File Monitor


class gio.FileMonitor(gobject.GObject):
    def cancel()

def emit_event(child, other_file, event_type)

def is_cancelled()

def set_rate_limit(limit_msecs)

gio.FileMonitor Properties

"cancelled"Read Whether the monitor has been cancelled. Default value: False.
"rate-limit"Read/Write The limit of the monitor to watch for changes, in milliseconds. Allowed values: >= 0. Default value: 800.

gio.FileMonitor Signal Prototypes

gobject.GObject Signal Prototypes


def callback(filemonitor, file, other_file, event_type, user_param1, ...)


The gio.FileMonitor monitors a file or directory for changes.

To obtain a gio.FileMonitor for a file or directory, use gio.FileMonitor.monitor(), gio.FileMonitor.monitor_file(), or gio.FileMonitor.monitor_directory().

To get informed about changes to the file or directory you are monitoring, connect to the "changed" signal.


Unfinished section, you may want to see the relevant C API docs for methods descriptions.