Skip to main content

orphans

Function orphans 

Source
pub fn orphans(
    store: &Store,
    layer: Option<Layer>,
) -> Result<Vec<PathBuf>, StoreError>
Expand description

SWEEP. Content files with no incoming AND no outgoing wiki-links — the curation worklist (“ingested but not yet wired into the wiki”). Off the loop. Optionally scoped to a layer.

A file is an orphan iff it neither links out to another store file nor is linked to by one. Incoming edges are counted across the whole store (a link from any layer un-orphans a file), even when layer scopes the candidate set. Returns store-relative paths, sorted.