Module zotonic_filewatcher_sup

Check for changed files, notify the zotonic_filehandler of any changes.

Copyright © 2015-2020 Marc Worrell

Behaviours: supervisor.

Authors: Marc Worrell (marc@worrell.nl).

Description

Check for changed files, notify the zotonic_filehandler of any changes

Function Index

init/1Return the filewatcher gen_server(s) to be used.
restart_watchers/0Restart watchers because of a new application.
start_link/0API for starting the site supervisor.
start_watchers/0
watch_dirs/0Return the list of all directories to watch.
watch_dirs_expanded/0We expand all watch dirs, so that symbolic links to src, include, and priv are followed.

Function Details

init/1

init(X1) -> any()

Return the filewatcher gen_server(s) to be used.

restart_watchers/0

restart_watchers() -> any()

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.

start_link/0

start_link() -> any()

API for starting the site supervisor.

start_watchers/0

start_watchers() -> any()

watch_dirs/0

watch_dirs() -> [string()]

Return the list of all directories to watch

watch_dirs_expanded/0

watch_dirs_expanded() -> [string()]

We expand all watch dirs, so that symbolic links to src, include, and priv are followed


Generated by EDoc