Skip to main content

read

Function read 

Source
pub fn read(path: &Path) -> Result<String>
Expand description

Reads the attributes file at path, treating an absent one as empty.

§Errors

Error::Io when the file exists but cannot be read, Error::Config when it is not text. An unreadable file is never silently treated as an empty one: that would replace the user’s own attributes with a bare managed section.