z_dropbox (zotonic_core v1.0.0-rc.12)

Simple dropbox handler, monitors a directory and signals new files.

Link to this section Summary

Functions

Convert process state when code is changed
Scan the dropbox, broadcast found files.
Handling all non call/cast messages
Initiates the server. Options are: dropbox_dir, processing_dir, unhandled_dir, interval, max_age and min_age
Perform a scan of the dropbox, periodically called by a timer.
Starts the dropbox server
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.

Link to this section Functions

Link to this function

code_change(OldVsn, State, Extra)

Convert process state when code is changed
Link to this function

handle_call(Message, From, State)

Trap unknown calls
Link to this function

handle_cast(Message, State)

Scan the dropbox, broadcast found files.
Link to this function

handle_info(Info, State)

Handling all non call/cast messages
Initiates the server. Options are: dropbox_dir, processing_dir, unhandled_dir, interval, max_age and min_age
Perform a scan of the dropbox, periodically called by a timer.
Link to this function

start_link(Site)

Starts the dropbox server
Link to this function

terminate(Reason, State)

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.