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.