fsutil

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSync added in v1.6.0

func AppendSync(path string, data []byte) error

AppendSync appends data to a file and fsyncs it. Used by the WAL for durable, sequential writes. The file is opened in append mode.

func AtomicWrite

func AtomicWrite(path string, data []byte) error

AtomicWrite writes data to a file atomically using a temp file + rename. This ensures the target file is never left in a truncated state.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL