FileMonitor
Superclasses: Object
- Constructors:
FileMonitor(**properties)
Methods
- class FileMonitor
-
- emit_event(child: File, other_file: File, event_type: FileMonitorEvent) None
Emits the
FileMonitor
::changed signal if a change has taken place. Should be called from file monitor implementations only.Implementations are responsible to call this method from the [thread-default main context][g-main-context-push-thread-default] of the thread that the monitor was created in.
- Parameters:
child – a
File
.other_file – a
File
.event_type – a set of
FileMonitorEvent
flags.
Properties
Signals
- class FileMonitor.signals
- changed(file: File, other_file: File | None, event_type: FileMonitorEvent) None
The type of the None singleton.
- Parameters:
file – a
File
.other_file – a
File
orNone
.event_type – a
FileMonitorEvent
.