update
update(
self ,
paths = None,
progress: Literal[‘standard’, ‘basic’, None, False] = standard,
client: dascore.constants.ExecutorType | None[ExecutorType, None] = None,
retry_unreadable: bool = False,
on_error: Literal[‘warn’, ‘raise’, ‘ignore’] = warn,
)-> ‘Self’
Update the index: scan new/changed sources, drop removed ones.
Change detection compares each source’s stored (mtime_ns, size_bytes) against the filesystem — never a global watermark — and stale-source removal is folded in (the walk is the dominant cost; removal afterwards is nearly free). Directory-format scan units (e.g. XMLBinary) are rescanned whole when any member file changes. Renamed/moved sources are detected by their unchanged stats and rewritten in place, never rescanned (see _detect_moves). An optional client scans batches of changed sources; all database changes stay in the calling thread. The caller owns the client. Paths (files or directories under the root) limit the walk, rescans and pruning to those scopes, except that a source moved into a scope drops its old row. None, or an index that was rebuilt or never finished its first update, walks everything. retry_unreadable also rescans walked sources that gave no patches. on_error says what the walk and scan do about a source they cannot read: warn and skip, raise ScanError, or skip silently.