amber/fs/fs_watcher
Types
pub type FsEvent {
FsEvent(
kind: FsEventKind,
paths: List(String),
flag: Option(FsEventFlag),
)
}
Constructors
-
FsEvent( kind: FsEventKind, paths: List(String), flag: Option(FsEventFlag), )
pub type FsEventFlag {
Rescan
}
Constructors
-
Rescan
pub type FsEventKind {
Any
Access
Create
Modify
Rename
Remove
Other
}
Constructors
-
Any
-
Access
-
Create
-
Modify
-
Rename
-
Remove
-
Other
Functions
pub fn iterate_async(
watcher: FsWatcher,
callback: fn(FsEvent) -> Nil,
) -> Nil