Documentation
¶
Overview ¶
Package fileutil provides small filesystem helpers shared across the service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWriteFile ¶
AtomicWriteFile writes data to path with the given permissions, so a crash mid-write cannot leave a truncated file. It writes a temp file in the same directory and renames it over the target; the temp handle is closed before the rename since Windows cannot rename an open file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.