Emitted when file
has been changed.
If using g_file_monitor_watch_moves on a directory monitor, and the information is available (and if
supported by the backend), event_type
may be g_file_monitor_event_renamed,
g_file_monitor_event_moved_in or g_file_monitor_event_moved_out.
In all cases file
will be a child of the monitored directory. For renames, file
will be the old name and
other_file
is the new name. For "moved in" events, file
is the name of the file that appeared and other_file
is the old name that it was moved from (in another directory). For "moved out" events, file
is the name of the file
that used to be in this directory and other_file
is the name of the file at its new location.
It makes sense to treat g_file_monitor_event_moved_in as equivalent to g_file_monitor_event_created and g_file_monitor_event_moved_out as equivalent to g_file_monitor_event_deleted, with extra information. g_file_monitor_event_renamed is equivalent to a delete/create pair. This is exactly how the events will be reported in the case that the g_file_monitor_watch_moves flag is not in use.
If using the deprecated flag g_file_monitor_send_moved flag and event_type
is
g_file_monitor_event_moved, file
will be set to a
File containing the old path, and other_file
will be set to a
File containing the new path.
In all the other cases, other_file
will be set to NULL
.
file |
a File. |
other_file |
a File or |
event_type |