Module scan

Source
Expand description

Directory traversal and parallel file reading.

The scan is incremental: a file whose path, size and modification date have not changed is not read again, its tags are taken from the previous catalog. On a library of 50,000 titles, that is the difference between several minutes and a few seconds.

Structs§

ScanOptions
Knobs governing a traversal. Default gives the settings suited to a personal library: automatic parallelism, no symlink following, hidden entries left alone.
ScanReport
Summary of a scan.

Enums§

Progress
Progress event, for display.

Functions§

cover_in
The image already serving as cover art in a folder, if there is one.
resolve_threads
How many threads a run should use: what was asked for, or what the machine offers.
scan
Scans the given folders and builds a catalog.