FileWatch.watch

Add a path to watch for events.

  1. bool watch(Path path, uint events)
    struct FileWatch
    bool
    watch
  2. bool watch(string p, uint events)

Parameters

path Path

path to watch

events uint

events to watch for. See man inotify and core.sys.linux.sys.inotify.

Return Value

Type: bool

true if the path was successfully added.

Meta