monitor


Description:

public FileMonitor monitor (FileMonitorFlags flags, Cancellable? cancellable = null) throws Error

Obtains a file or directory monitor for the given file, depending on the type of the file.

If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error g_io_error_cancelled will be returned.

Parameters:

this

input File

flags

a set of FileMonitorFlags

cancellable

optional Cancellable object, null to ignore

Returns:

a FileMonitor for the given this, or null on error. Free the returned object with unref.