Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PrivateFileMode grants owner to read/write a file.
PrivateFileMode = 0o600
)
Variables ¶
This section is empty.
Functions ¶
func AtomicCopy ¶
AtomicCopy copies file by reading the file then writing atomically into the target directory
func AtomicWrite ¶
Write atomically by writing to a temporary file in the same directory then renaming
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.