Skip to main content

read_optional

Function read_optional 

Source
pub fn read_optional(path: &Path) -> Result<Option<Vec<u8>>>
Expand description

A file’s bytes, or None when it does not exist.

§Errors

Returns an error when the file exists but cannot be read.