Documentation
¶
Overview ¶
Package fs holds filesystem helpers shared across packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFileAtomic ¶
WriteFileAtomic writes content to path via a sibling `.<basename>.tmp` file: write, fsync, rename into place, fsync the parent directory so the rename survives a crash. The parent directory must already exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.