Skip to main content

KernelDB.scan_roots()

Run scan_directory over every configured kernel root.

Usage

Source

KernelDB.scan_roots(
    verbose=False,
    archive=False,
    archive_roots=None,
)

The roots in db.kernel_roots are scanned in order, as skd scan does with no directory (#48). A root that is not an existing directory is skipped with a warning to the spice_kernel_db logger: Kernel root <path> does not exist; skipped.

Parameters

verbose: bool = False

As for scan_directory.

archive: bool = False

As for scan_directory.

archive_roots: dict[str, Path] | None = None
As for scan_directory.

Returns

tuple[int, set[str]]
The total count of registered files and the union of the missions found.