Exnotify (exnotify v0.1.0)
Documentation for Exnotify
.
Link to this section Summary
Functions
Watch for events on directory or file.
Returns a specification to start this module under a supervisor.
Start the GenServer.
Link to this section Functions
Link to this function
add_watch(name, pathname, events \\ [:notify_in_create], opts \\ [])
Specs
add_watch( name :: GenServer.name(), pathname :: String.t(), events :: [ :notify_in_access | :notify_in_attrib | :notify_in_close_write | :notify_in_close_nowrite | :notify_in_create | :notify_in_delete | :notify_in_delete_self | :notify_in_modify | :notify_in_moved_from | :notify_in_moved_to | :notify_in_open | :notify_in_move ], opts :: [] ) :: :ok | {:error, any()}
Watch for events on directory or file.
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
start_link(opts \\ [])
Start the GenServer.
Options
:name
- The name for locally registered as. By default isExnotify
:watcher
- The pid of watcher events. By default is pid of caller