fileutil

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fileutil provides file operation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies the file at src to dst. If dst already exists it is overwritten. Partial files are cleaned up on error.

func WriteFileAtomic

func WriteFileAtomic(path string, data []byte, perm os.FileMode) (err error)

WriteFileAtomic replaces path only after data has been written and synced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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