Skip to main content

open_regular_for_read

Function open_regular_for_read 

Source
pub fn open_regular_for_read(path: &Path) -> Result<File, RestrictedOpenError>
Expand description

Open a regular file for reading, refusing magic links, procfs and sysfs.