Copyright © 2018 Marc Worrell
Behaviours: application.
Authors: Marc Worrell (marc@worrell.nl).
fileindex() = #fileindex{}
flush/0 | Clear the complete cache, force a rescan. |
flush/1 | Clear the cache for the given application. |
flush/2 | Clear the cache for the given application and subdir prefix. |
scan/2 | Scan an application/dir for files matching a file pattern. |
scan/3 | |
start/0 | |
start/2 | |
stop/1 |
flush() -> ok
Clear the complete cache, force a rescan.
flush(App::atom()) -> ok
Clear the cache for the given application. Useful to force a rescan.
flush(App::atom(), SubDir::file:filename_all()) -> ok
Clear the cache for the given application and subdir prefix. Useful to force a rescan.
scan(App::atom(), SubDir::file:filename_all()) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}
Scan an application/dir for files matching a file pattern
scan(App::atom(), SubDir::file:filename_all(), Pattern::string() | binary() | undefined) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}
start() -> any()
start(StartType, StartArgs) -> any()
stop(State) -> any()
Generated by EDoc