Skip to main content

open_events_append

Function open_events_append 

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

Open events.jsonl for O_APPEND writes (creating it if absent).

O_NOFOLLOW so an existing events.jsonl that has been replaced by a symlink fails the open (ELOOP) rather than redirecting the highest-leverage run write through it — the file-level backstop to the caller’s symlink_metadata check (see crate::paths::nofollow).