Skip to main content

safe_read

Function safe_read 

Source
pub fn safe_read(path: &str) -> Result<String, String>
Expand description

Read a file with size cap. Returns an error string if the file is missing, unreadable, or larger than MAX_FILE_SIZE.