zotonic_fileindexer (zotonic_fileindexer v1.0.0-rc.11)
Link to this section Summary
Functions
Clear the complete cache, force a rescan.
Clear the cache for the given application. Useful to force a rescan.
Clear the cache for the given application and subdir prefix. Useful to force a rescan.
Scan an application/dir for files matching a file pattern
Link to this section Types
Link to this type
fileindex/0
-type fileindex() :: #fileindex{}.
Link to this section Functions
Link to this function
flush()
-spec flush() -> ok.
Link to this function
flush(App)
-spec flush(atom()) -> ok.
Link to this function
flush(App, SubDir)
-spec flush(atom(), file:filename_all()) -> ok.
Link to this function
scan(App, SubDir)
-spec scan(atom(), file:filename_all()) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}.
Link to this function
scan(App, SubDir, Pattern)
-spec scan(atom(), file:filename_all(), string() | binary() | undefined) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}.
Link to this function
start()
Link to this function
start(StartType, StartArgs)
Link to this function