zotonic_filewatcher_sup (zotonic_filewatcher v1.0.0-rc.14)

Check for changed files, notify the zotonic_filehandler of any changes

Link to this section Summary

Functions

Return the filewatcher gen_server(s) to be used.
Restart watchers because of a new application. This is because of new symlinks, the filewatcher_monitor resolves symlinks itself, so doesn't need to be restarted.
API for starting the site supervisor.
Return the list of all directories to watch
We expand all watch dirs, so that symbolic links to src, include, and priv are followed

Link to this section Functions

Return the filewatcher gen_server(s) to be used.
Link to this function

restart_watchers()

Restart watchers because of a new application. This is because of new symlinks, the filewatcher_monitor resolves symlinks itself, so doesn't need to be restarted.
API for starting the site supervisor.
Link to this function

start_watchers()

-spec watch_dirs() -> [string()].
Return the list of all directories to watch
Link to this function

watch_dirs_expanded()

-spec watch_dirs_expanded() -> [string()].
We expand all watch dirs, so that symbolic links to src, include, and priv are followed