amber/deno/fs_event
Types
Represents a unique file system event yielded by a
FsWatcher
.
pub type FsEvent {
FsEvent(
kind: FsEventKind,
paths: List(String),
flag: Option(FsEventFlag),
)
}
Constructors
-
FsEvent( kind: FsEventKind, paths: List(String), flag: Option(FsEventFlag), )
Arguments
-
kind
The kind/type of the file system event.
-
paths
An array of paths that are associated with the file system event.
-
flag
Any additional flags associated with the event.
-
Additional information for FsEvent objects with the “other” kind.
"rescan"
: rescan notices indicate either a lapse in the events or a change in the filesystem such that events received so far can no longer be relied on to represent the state of the filesystem now. An application that simply reacts to file changes may not care about this. An application that keeps an in-memory representation of the filesystem will need to care, and will need to refresh that representation directly from the filesystem.
pub type FsEventFlag {
Rescan
}
Constructors
-
Rescan
pub type FsEventKind {
Any
Access
Create
Modify
Rename
Remove
Other
}
Constructors
-
Any
-
Access
-
Create
-
Modify
-
Rename
-
Remove
-
Other