FileSystemEvent.watch

Adds or updates the events being watched for the specified path. The handler delegate previously specified will be called when one of the watched events occurs.

class FileSystemEvent
void
watch

Parameters

path char[]

File path to watch (directories are also supported)

events FileEventsEnum

Inotify events that will be watched (flags)

Throws

upon failure during addition of new file to watch

Meta