Documentation
¶
Overview ¶
Package fsutil holds small file helpers shared by the config and cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFileAtomic ¶
WriteFileAtomic writes data to path through a uniquely named temporary file in the same directory, then renames it into place. The file is created with mode 0600 (enforced on the open descriptor, so a pre-existing file or umask cannot widen it), every write and close error is checked, and the temporary file is removed on failure. An existing symlink at path is replaced, not followed.
Types ¶
This section is empty.