Skip to main content

read_registration

Function read_registration 

Source
pub fn read_registration(root: &Path) -> Result<Option<RegistrationFile>>
Expand description

The registration for root, or None when nothing published one.

Only absence means “nothing is published”. A file that exists at this tree’s own digest but is not a registration is io::ErrorKind::InvalidData with the path in the message, because a reader that got this far has to know it could not be read rather than treat a broken endpoint as an absent one.