Base event class emitted by FileSystemEntity.watch.

Implemented by

Constants

int ALL = CREATE | MODIFY | DELETE | MOVE
const

Bitfield for FileSystemEntity.watch, for enabling all of CREATE, MODIFY, DELETE and MOVE.

int CREATE = 1 << 0
const

Bitfield for FileSystemEntity.watch, to enable FileSystemCreateEvents.

int DELETE = 1 << 2
const

Bitfield for FileSystemEntity.watch, to enable FileSystemDeleteEvents.

int MODIFY = 1 << 1
const

Bitfield for FileSystemEntity.watch, to enable FileSystemModifyEvents.

int MOVE = 1 << 3
const

Bitfield for FileSystemEntity.watch, to enable FileSystemMoveEvents.

Properties

isDirectory bool
read-only

Is true if the event target was a directory.

path String
read-only

The path that triggered the event. Depending on the platform and the FileSystemEntity, the path may be relative.

type int
read-only

The type of event. See FileSystemEvent for a list of events.