FileSystemEvent class

Base event class emitted by FileSystemEntity.watch.

Base event class emitted by FileSystemEntity.watch.

Implementors

Constants

CREATE = 1 << 0
Bitfield for FileSystemEntity.watch, to enable FileSystemCreateEvents.
MODIFY = 1 << 1
Bitfield for FileSystemEntity.watch, to enable FileSystemModifyEvents.
DELETE = 1 << 2
Bitfield for FileSystemEntity.watch, to enable FileSystemDeleteEvents.
MOVE = 1 << 3
Bitfield for FileSystemEntity.watch, to enable FileSystemMoveEvents.
ALL = CREATE | MODIFY | DELETE | MOVE
Bitfield for FileSystemEntity.watch, for enabling all of CREATE, MODIFY, DELETE and MOVE.

Instance Properties

type int
read-only
The type of event. See FileSystemEvent for a list of events.
path String
read-only
The path that triggered the event. Depending on the platform and the FileSystemEntity, the path may be relative.
isDirectory bool
read-only
Is true if the event target was a directory.