Skip to main content

check

Function check 

Source
pub fn check(
    library: &Library,
    found: &Found,
    starting: Option<&Path>,
) -> Result<(), PointerError>
Expand description

Refuses a library that a .nib file named, unless the library keeps a tree in that very folder on this device: a .nib file from elsewhere, such as in an archive, must not point commands at the person’s library. A file in starting, the folder that nib init makes a tree, counts all the same, as init writes it anew.

§Errors

Returns PointerError::Stray if it keeps none there, and an error if a space cannot be read.