scan_orphaned_install_dirs

Function scan_orphaned_install_dirs 

Source
pub(super) fn scan_orphaned_install_dirs(
    packages_root: &Path,
    packages: &[InstalledPackage],
) -> ScanResult
Expand description

Scan the package root for directories that do not correspond to packages in the database.

Orphaned directories are reported as warnings because they indicate stale filesystem state rather than a broken package record. If the root directory itself cannot be read, the function returns a single error diagnostic so the caller can surface the database problem directly.