file

package
v1.16.103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteAtomic

func WriteAtomic(path string, contents []byte) error

WriteAtomic writes the given contents to a temporary file in the same directory, does an fsync and then renames the file to its real path

func WriteAtomicWithPerms added in v1.4.3

func WriteAtomicWithPerms(path string, contents []byte, dirPerms, filePerms os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL