Skip to main content

scan

Function scan 

Source
pub fn scan(
    services: &Services,
) -> impl Stream<Item = Result<Finding>> + Send + '_
Expand description

Streams each mediaid_file row the media directory disagrees with, only once the sha256 rename is stamped.

Every row is judged against one listing of the directory, under the four cases the startup media check acts on. A directory that does not list, or a legacy name whose kind cannot be read, is an error rather than a finding.