package file

import "github.com/hashicorp/nomad/lib/file"

Index

Functions

func WriteAtomicWithPerms

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

WriteAtomicWithPerms creates a temp file with specific permissions and then renames and moves it to the path.

Source Files

atomic.go

Version
v1.10.0 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
20 minutes ago

Tools for package owners.