Dart SDK
dart:io
FileSystemEvent
class
FileSystemEvent
Constants
Properties
Constants
CREATE
MODIFY
DELETE
MOVE
ALL
Properties
type
path
isDirectory
Base event class emitted by
FileSystemEntity.watch
.
Implemented by
FileSystemCreateEvent
FileSystemDeleteEvent
FileSystemModifyEvent
FileSystemMoveEvent
Constants
int
CREATE
=
1 << 0
const
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemCreateEvent
s.
int
MODIFY
=
1 << 1
const
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemModifyEvent
s.
int
DELETE
=
1 << 2
const
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemDeleteEvent
s.
int
MOVE
=
1 << 3
const
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemMoveEvent
s.
int
ALL
=
CREATE | MODIFY | DELETE | MOVE
const
Bitfield for
FileSystemEntity.watch
, for enabling all of
CREATE
,
MODIFY
,
DELETE
and
MOVE
.
Properties
int
type
read-only
The type of event. See
FileSystemEvent
for a list of events.
String
path
read-only
The path that triggered the event. Depending on the platform and the FileSystemEntity, the path may be relative.
bool
isDirectory
read-only
Is true if the event target was a directory.