index_filebase


Description:

public async int index_filebase (FileBase filebase, bool recurse = false, bool force = false) throws Error

Index a file or folder.

Processes the FileBase object through the appropriate indexing method. Handles FileAlias by following to target.

Parameters:

filebase

The file or folder to index (must exist in database)

recurse

If true and filebase is a folder, recursively process subfolders

force

If true, skip incremental check and force re-indexing

Returns:

Number of files indexed