Class
GioFileMonitor
Description [src]
abstract class Gio.FileMonitor : GObject.Object
{
/* No available fields */
}
Monitors a file or directory for changes.
To obtain a GFileMonitor
for a file or directory, use
g_file_monitor()
, g_file_monitor_file()
, or
g_file_monitor_directory()
.
To get informed about changes to the file or directory you are
monitoring, connect to the GFileMonitor::changed
signal. The
signal will be emitted in the thread-default main context (see
g_main_context_push_thread_default()
) of the thread that the monitor
was created in (though if the global default main context is blocked, this
may cause notifications to be blocked even if the thread-default
context is still running).
Instance methods
g_file_monitor_emit_event
Emits the GFileMonitor::changed
signal if a change
has taken place. Should be called from file monitor
implementations only.
g_file_monitor_set_rate_limit
Sets the rate limit to which the monitor
will report
consecutive change events to the same file.