FileSystem.Behaviour behaviour (Raxol v0.5.0)

View Source

Defines the behaviour for file system watching functionality. This is used for mocking in tests.

Summary

Callbacks

Starts a file system watcher for the given directories.

Subscribes to file system events from the watcher.

Callbacks

start_link(list)

@callback start_link([{:dirs, [String.t()]}]) :: {:ok, pid()} | {:error, term()}

Starts a file system watcher for the given directories.

subscribe(pid)

@callback subscribe(pid()) :: :ok | {:error, term()}

Subscribes to file system events from the watcher.