Skip to main content

write_append

Function write_append 

Source
pub async fn write_append(path: &Path, content: &[u8]) -> Result<()>
Expand description

Write with append semantics

Creates file if it doesn’t exist, appends if it does. Uses flush + sync for durability.

§Arguments

  • path - Target file path
  • content - Content to append