Apero.File.Watcher (Apero v3.1.0)

Copy Markdown View Source

File system watcher GenServer.

This is a pure OTP GenServer that wraps file_system for watching file changes. The watch/3 convenience function moved to Trebejo.File in v3.0.0 because it depends on Arrea.WorkerSupervisor, but this GenServer remains in Apero.

You normally use Trebejo.File.watch/3 rather than instantiating this directly.

Summary

Types

callback()

@type callback() :: ([{binary(), [event()]}] -> any())

event()

@type event() ::
  :modified | :created | :deleted | :renamed | :isdir | :attribute | atom()

Functions

start_link(opts)

@spec start_link(keyword() | map()) :: GenServer.on_start()