Skip to main content

open_regular_for_append

Function open_regular_for_append 

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

Open or create a regular file for appending. Refuse magic links, procfs/sysfs and a symlink as the final component. Use exclusive creation so a file planted after inspection is not opened.