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
pub type FsWatcher

Functions

pub fn close(watcher: FsWatcher) -> Nil
pub fn iterate_async(
  watcher: FsWatcher,
  callback: fn(FsEvent) -> Nil,
) -> Nil
Search Document