Class | LightMediaScanner::Scanner |
In: |
rdoc.c
|
Parent: | Object |
LightMediaScanner::Scanner is a class to represent a LightMediaScanner instance.
Scanner::add_charset
Register a new charset encoding to be used.
Throws a RuntimeError if LMS is unable to add the charset.
Scanner::check
Check consistency of the given directory.
Scanner::commit_interval
Get the number of files served between database transactions.
Scanner::commit_interval=
Set the number of files to be served between database transactions.
Scanner::process
This will add or update media found in the given directory or its children.
Scanner::processing?
Checks if Light Media Scanner is being used in a processing operation like lms_process() or lms_check().
Scanner::remove_charset
Forget about a registered charset encoding.
Throws a RuntimeError if LMS is unable to remove the charset.
Scanner::timeout
Get the maximum amount of milliseconds the slave can take to serve one file.
If a slave takes more than this amount of milliseconds, it will be killed and the scanner will continue with the next file.