fileutil

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicWriteFile

func AtomicWriteFile(filename string, reader io.Reader, mode os.FileMode) error

AtomicWriteFile atomically (as atomic as os.Rename allows) writes a file to a disk.

func PlatformAtomicWriteFile

func PlatformAtomicWriteFile(filename string, reader io.Reader, mode os.FileMode) error

PlatformAtomicWriteFile atomically writes a file to disk.

On non-Windows platforms we don't need extra coordination, so this simply delegates to AtomicWriteFile to preserve the existing overwrite behaviour.

Types

This section is empty.

Jump to

Keyboard shortcuts

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