Documentation
¶
Overview ¶
Package fsatomic provides crash-safe atomic file writes shared by the file-backed adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFile ¶
WriteFile atomically writes data to path with the given permissions. It writes to a temporary file in the same directory, fsyncs it, renames it into place, then best-effort fsyncs the parent directory so the rename survives a crash. The parent directory is created with 0o700 if it does not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.