zotonic_filewatcher_handler (zotonic_filewatcher v1.0.0-rc.14)

Handle changed files

Link to this section Summary

Functions

Called when a file is changed on disk, buffers changes before sending a batch to the zotonic_filehandler.
Called by zotonic_filewatcher_handler

Link to this section Functions

Link to this function

code_change(Vsn, State, Extra)

Link to this function

file_changed(Verb, F)

-spec file_changed(zotonic_filehandler:verb(), file:filename_all()) -> ok.
Called when a file is changed on disk, buffers changes before sending a batch to the zotonic_filehandler.
Link to this function

handle_call(Msg, From, State)

Link to this function

handle_cast(Msg, State)

Link to this function

handle_info(Msg, State)

-spec init(term()) -> {ok, #state{}}.
Link to this function

is_file_blocked(F)

-spec is_file_blocked(binary() | string()) -> boolean().
Link to this function

is_file_blocked(Dir, File)

Called by zotonic_filewatcher_handler
-spec re_exclude() -> string().
-spec start_link() -> {ok, pid()} | {error, term()}.
Link to this function

terminate(Reason, State)