firefly_rust::sudo

Function load_file_buf

source
pub fn load_file_buf(path: &str) -> Option<FileBuf>
Expand description

Like load_file but takes care of the buffer allocation and ownership.

None is returned if the file does not exist.