indexer

module of dascore.io.index source

A directory indexer backed by the generic spool index.

It walks a directory, detects new/changed/removed sources by per-source (mtime, size) comparison, scans only what changed, and answers content queries from the index backend. Also holds the machinery for tracking index locations when the data directory itself is not writable (e.g. read-only archives).

Functions

Name Description
scan_unit_stats Return the (mtime_ns, size_bytes) the index records for one scan unit.

Classes

Name Description
DBDirectoryIndexer Index a directory of fiber files with a database backend.