zotonic_fileindexer (zotonic_fileindexer v1.0.0-rc.13)

Indexes directories of applications.

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

-type fileindex() :: #fileindex{}.

Link to this section Functions

-spec flush() -> ok.
Clear the complete cache, force a rescan.
-spec flush(atom()) -> ok.
Clear the cache for the given application. Useful to force a rescan.
Link to this function

flush(App, SubDir)

-spec flush(atom(), file:filename_all()) -> ok.
Clear the cache for the given application and subdir prefix. Useful to force a rescan.
Link to this function

scan(App, SubDir)

-spec scan(atom(), file:filename_all()) -> {ok, [zotonic_fileindexer:fileindex()]} | {error, term()}.
Scan an application/dir for files matching a file pattern
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(StartType, StartArgs)