## KernelDB.scan_roots()


Run [scan_directory](KernelDB.scan_directory.md#spice_kernel_db.KernelDB.scan_directory) over every configured kernel root.


Usage

``` python
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](KernelDB.scan_directory.md#spice_kernel_db.KernelDB.scan_directory).

`archive: bool = ``False`  
As for [scan_directory](KernelDB.scan_directory.md#spice_kernel_db.KernelDB.scan_directory).

`archive_roots: dict[str, Path] | None = None`  
As for [scan_directory](KernelDB.scan_directory.md#spice_kernel_db.KernelDB.scan_directory).


## Returns


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